1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-31 10:22:39 +08:00

Fix wrong position of overlay at first drag

This commit is contained in:
Thibault GEFFROY 2025-03-18 10:53:02 +01:00
parent cb62cd7b85
commit 772a371ce6
No known key found for this signature in database
GPG Key ID: 30B5D581E60332E7

View File

@ -507,6 +507,10 @@ CDockManager::CDockManager(QWidget *parent) :
CDockContainerWidget(this, parent),
d(new DockManagerPrivate(this))
{
// Force the Dock Manager to be native in order to fix wrong position of overlay
// the first time a dock container is dragged
winId();
createRootSplitter();
createSideTabBarWidgets();
QMainWindow* MainWindow = qobject_cast<QMainWindow*>(parent);