Skip to content

Commit 4ff92df

Browse files
committed
Fix non OpenGL CDockWidgets vanish when docking OpenGl widget in the same area
This fix concerns only Windows behaviors
1 parent 83b37c5 commit 4ff92df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DockWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ CDockWidget::CDockWidget(CDockManager *manager, const QString &title, QWidget* p
376376
: QFrame(parent),
377377
d(new DockWidgetPrivate(this))
378378
{
379+
// Force the new CDockWidget to be native so OpenGL widgets are well handled
380+
// with non OpenGL widgets
381+
winId();
379382
d->DockManager = manager;
380383
d->Layout = new QBoxLayout(QBoxLayout::TopToBottom);
381384
d->Layout->setContentsMargins(0, 0, 0, 0);

0 commit comments

Comments
 (0)