[Interest] QApplication doesn't want to quit

Jakob Magiera JAM at ivu.de
Wed Sep 2 12:30:25 CEST 2015

AFAIK the Standard solution is QApplication:: setQuitOnLastWindowClosed(true);


Von: interest-bounces+jam=ivu.de at qt-project.org [mailto:interest-bounces+jam=ivu.de at qt-project.org] Im Auftrag von Igor Mironchik
Gesendet: Mittwoch, 2. September 2015 11:40
An: interest at qt-project.org
Betreff: [Interest] QApplication doesn't want to quit


Standard solution:

QApplication app( argc, argv );

QObject::connect( &app, &QApplication::lastWindowClosed,

    &app, &QApplication::quit );

I'm sure that lastWindowClosed emits, but QApplication doesn't want to quit.

For testing I build application with CONFIG += console

And I see this console window... What can be the problem?

One more: I'm sure that aboutToQuit() signal emits too.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150902/b255101c/attachment.html>

More information about the Interest mailing list