How to programatically move a QDockWidget from one dock area to another?

96 Views Asked by At

How can I programmatically move a QDockWidget from Qt.DockWidgetArea.TopDockWidgetArea to Qt.DockWidgetArea.RightDockWidgetArea using pyqt?

Qt.DockWidgetArea.RightDockWidgetArea might contain no existing widgets, so using QMainWindow.splitDockWidget() doesn't seem to be an option as that requires an existing widget from the target dock area.

0

There are 0 best solutions below