You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stated in the DockWidgetBase::mainWindow - function, The Docking system should work with QMainWindows that are children of other windows. In addDockWidgetToContainingWindow that is not recognised.
diff:
Index: src/DockWidgetBase.cpp
===================================================================
--- src/DockWidgetBase.cpp
+++ src/DockWidgetBase.cpp
@@ -118,7 +118,7 @@
DockWidgetBase *relativeTo,
InitialOption initialOption)
{
- if (auto mainWindow = qobject_cast<MainWindowBase *>(window())) {
+ if (auto mainWindow = DockWidgetBase::mainWindow()) {
// It's inside a main window. Simply use the main window API.
mainWindow->addDockWidget(other, location, relativeTo, initialOption);
return;
The text was updated successfully, but these errors were encountered:
As stated in the DockWidgetBase::mainWindow - function, The Docking system should work with QMainWindows that are children of other windows. In addDockWidgetToContainingWindow that is not recognised.
diff:
The text was updated successfully, but these errors were encountered: