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

Fix non OpenGL CDockWidgets vanish when docking OpenGl widget in the same area

This fix concerns only Windows behaviors
This commit is contained in:
Thibault GEFFROY 2025-03-20 12:15:48 +01:00
parent 83b37c5be6
commit 4ff92dfd80
No known key found for this signature in database
GPG Key ID: 30B5D581E60332E7

View File

@ -376,6 +376,9 @@ CDockWidget::CDockWidget(CDockManager *manager, const QString &title, QWidget* p
: QFrame(parent),
d(new DockWidgetPrivate(this))
{
// Force the new CDockWidget to be native so OpenGL widgets are well handled
// with non OpenGL widgets
winId();
d->DockManager = manager;
d->Layout = new QBoxLayout(QBoxLayout::TopToBottom);
d->Layout->setContentsMargins(0, 0, 0, 0);