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

Jakob

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

Hi,

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.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to