Skip to content

Commit dba6e6c

Browse files
Create ActiveX widget only if OpaqueUndocking is not active - it will cause jerking dragging of floating widget
1 parent aee68c1 commit dba6e6c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

demo/MainWindow.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,13 @@ void MainWindowPrivate::createContent()
544544

545545
#ifdef Q_OS_WIN
546546
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
547-
DockManager->addDockWidget(ads::CenterDockWidgetArea, createActiveXWidget(), RighDockArea);
547+
// If opaque undocking is active, then undocking of widgets while
548+
// active x widget is visible causes jerking while dragging a floating
549+
// widget
550+
if (!ads::CDockManager::testConfigFlag(ads::CDockManager::OpaqueUndocking))
551+
{
552+
DockManager->addDockWidget(ads::CenterDockWidgetArea, createActiveXWidget(), RighDockArea);
553+
}
548554
#endif
549555
#endif
550556

@@ -697,7 +703,7 @@ CMainWindow::CMainWindow(QWidget *parent) :
697703

698704
// uncomment the following line if you want to use opaque undocking and
699705
// opaque splitter resizing
700-
CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig);
706+
//CDockManager::setConfigFlags(CDockManager::DefaultOpaqueConfig);
701707

702708
// uncomment the following line if you want a fixed tab width that does
703709
// not change if the visibility of the close button changes

0 commit comments

Comments
 (0)