Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] How does qApp->quit() works?
nikitablack last edited by
If I call qApp->quit() in buttonClikedSlot (connected to QPushButton::clicked signal) everything works fine. But if I call qApp->quit() in constructor or in main or in slot connected to QProcess::started signal, application doesn't quit. Why?
technovelist last edited by
How was it solved? I have the same problem.
mcosta last edited by
can you show your code??
in order to quit, the application must first start. So calling quit in a constructor called before exec() won't have any effect.