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