Qt 6.11 is out! See what's new in the release
blog
[Solved] QT application shutsdown when minimized after closing related dialog
General and Desktop
3
Posts
2
Posters
1.5k
Views
1
Watching
-
Hi everyone,
I'm having this mind boggling problem, my application will sometimes spawn dialogs to collect information while being minimized to tray. However when I close the dialog while the main window is minimized to tray, the application will just terminate without any error or warning.
I spawn the dialog like this:
@
/* Create Dialog */
WorkLogDialog *workEntry = new WorkLogDialog(this);
workEntry->show();
workEntry->activateWindow();
workEntry->raise();
workEntry->setFocus();/* Set signal */ connect(workEntry, SIGNAL(finished(int)), this, SLOT(DialogClosed(int)));@
If the main window is not minimized, the problem does not occur.