Changed demos to delete the dock manager when the main window is closes to ensure that all floating widgets als "closed" (destroyed)

This commit is contained in:
Uwe Kindler
2020-07-22 11:28:41 +02:00
parent 8443414ae3
commit 4a6d2d3514
6 changed files with 57 additions and 1 deletions

View File

@@ -634,6 +634,9 @@ CMainWindow::~CMainWindow()
void CMainWindow::closeEvent(QCloseEvent* event)
{
d->saveState();
// Delete dock manager here to delete all floating widgets. This ensures
// that all top level windows of the dock manager are properly closed
d->DockManager->deleteLater();
QMainWindow::closeEvent(event);
}