example: Move the floating window away from the top-border

Fixes on Windows the its titlebar being hidden
This commit is contained in:
Sergio Martins
2020-03-24 11:16:27 +00:00
parent fc63f843b7
commit b2c3442233

View File

@@ -136,6 +136,9 @@ void MyMainWindow::createDockWidgets()
// Floating windows also support nesting, here we add 8 to the bottom of the group
m_dockwidgets[6]->addDockWidgetToContainingWindow(m_dockwidgets[8], KDDockWidgets::Location_OnBottom);
auto floatingWindow = m_dockwidgets[6]->window();
floatingWindow->move(100, 100);
}
KDDockWidgets::DockWidgetBase *MyMainWindow::newDockWidget()