Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to drag another Qdockwidget on one Qdockwidget
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?
Do you mean QMainWindow::tabifyDockWidget ?
If I do this, then only the upper dockwidget remains visible, while the lower one disappears.
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