diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index 47add8f..9520830 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -712,6 +712,7 @@ void CMainWindow::createEditor() bool Floating = vFloating.isValid() ? vFloating.toBool() : true; auto DockWidget = d->createEditorWidget(); DockWidget->setFeature(ads::CDockWidget::DockWidgetDeleteOnClose, true); + DockWidget->setFeature(ads::CDockWidget::DockWidgetForceCloseWithArea, true); connect(DockWidget, SIGNAL(closeRequested()), SLOT(onEditorCloseRequested())); if (Floating)