We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9645ef commit b44a7e7Copy full SHA for b44a7e7
src/FloatingDockContainer.cpp
@@ -313,7 +313,18 @@ void CFloatingDockContainer::closeEvent(QCloseEvent *event)
313
314
if (isClosable())
315
{
316
- QWidget::closeEvent(event);
+ // In Qt version after 5.9.2 there seems to be a bug that causes the
317
+ // QWidget::event() function to not receive any NonClientArea mouse
318
+ // events anymore after a close/show cycle. The bug is reported here:
319
+ // https://bugreports.qt.io/browse/QTBUG-73295
320
+ // The following code is a workaround for Qt versions > 5.9.2 that seems
321
+ // to work
322
+#if (QT_VERSION > 0x050902)
323
+ event->ignore();
324
+ this->hide();
325
+#else
326
+ Super::closeEvent(event);
327
+#endif
328
}
329
else
330
0 commit comments