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:
parent
83b37c5be6
commit
4ff92dfd80
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user