From dba6e6c869812e04b09065c45b6b8a9d9c3fbbc3 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Tue, 22 Nov 2022 10:25:44 +0100 Subject: [PATCH] Create ActiveX widget only if OpaqueUndocking is not active - it will cause jerking dragging of floating widget --- demo/MainWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/demo/MainWindow.cpp b/demo/MainWindow.cpp index 762c7a9..65e491a 100644 --- a/demo/MainWindow.cpp +++ b/demo/MainWindow.cpp @@ -544,7 +544,13 @@ void MainWindowPrivate::createContent() #ifdef Q_OS_WIN #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) - DockManager->addDockWidget(ads::CenterDockWidgetArea, createActiveXWidget(), RighDockArea); + // If opaque undocking is active, then undocking of widgets while + // active x widget is visible causes jerking while dragging a floating + // widget + if (!ads::CDockManager::testConfigFlag(ads::CDockManager::OpaqueUndocking)) + { + DockManager->addDockWidget(ads::CenterDockWidgetArea, createActiveXWidget(), RighDockArea); + } #endif #endif @@ -697,7 +703,7 @@ CMainWindow::CMainWindow(QWidget *parent) : // uncomment the following line if you want to use opaque undocking and // opaque splitter resizing - CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig); + //CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig); // uncomment the following line if you want a fixed tab width that does // not change if the visibility of the close button changes