diff --git a/src/DockWidget.cpp b/src/DockWidget.cpp index b4e0bb1..398ae6d 100644 --- a/src/DockWidget.cpp +++ b/src/DockWidget.cpp @@ -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);