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 around).
My 2 c, -- Giuseppe D'Angelo | giuseppe.dang...@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
smime.p7s
Description: Firma crittografica S/MIME
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest