Re: [Interest] QDateTime::toString() fails when used in exit handler

2020-06-20 Thread Giuseppe D'Angelo via Interest
Il 19/06/20 22:12, Bernhard Lindner ha scritto: Can someone tell me what is going wrong here? There's a wider blanket statement made by Qt: you're not allowed to touch _most_ Qt APIs without a QCoreApplication object being alive. That's the case here. In detail, QDateTime uses some global tha

Re: [Interest] QDateTime::toString() fails when used in exit handler

2020-06-20 Thread Thiago Macieira
On Friday, 19 June 2020 13:12:17 PDT Bernhard Lindner wrote: > Can someone tell me what is going wrong here? Yes, the calendar system in Qt has already been destroyed. You can't format dates anymore. QDateTime::date() and QDateTime::time() still work. In general, don't do anything complex in exi