[Interest] QDateTime::toString() fails when used in exit handler
giuseppe.dangelo at kdab.com
Sat Jun 20 19:23:26 CEST 2020
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 that got
already destroyed by the time your atexit handler runs. But Qt doesn't
even guarantee that the usage in main() is OK (because there's no QCA
My 2 c,
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4329 bytes
Desc: Firma crittografica S/MIME
More information about the Interest