Solved How to drag another Qdockwidget on one Qdockwidget
-
Hi!
If I drag one Qdockwidget to another in the program, it turns out something like a tabwidget(example in the picture). Please tell me how to do this in the designer or in the code?
-
Hi,
Do you mean QMainWindow::tabifyDockWidget ?
-
If I do this, then only the upper dockwidget remains visible, while the lower one disappears.
self.tabifyDockWidget(self.ui.dockWidgetGroupmentsBallistic, self.ui.dockWidgetGroupmentsAc)
-
Then your request is not clear.
Either you put your dock widgets side by side or on top of each other which will trigger the creation of the tabbed widget.
-
But how do I move one widget to another by code? The code you suggested doesn't work.
-
Sory, it is works
self.ui.tabifyDockWidget(self.ui.dockWidgetGroupmentsBallistic, self.ui.dockWidgetGroupmentsAc)