### # BUG DECRIPTION: # 1. put myQDockWidget0 over myQDockWidget1 # 2. press the button to make myQDockWidget0 as floating OR # take it from tab area to make it again floating # 3. move myQDockWidget0 to see myQDockWidget1 # 4. take myQDockWidget1 to make it 'floating' # 5. docked it again in the same/another docking area # 6. myQDockWidget0 should be erase and some error data should be sent. # # Nb. if step 4 is done using the button to make it flaoting, no error arise ### if __name__ == "__main__": import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from sip import SIP_VERSION_STR """TODO""" class myQMainWindow( QMainWindow ): """TODO""" _DOCK_OPTS = QMainWindow.AnimatedDocks | \ QMainWindow.ForceTabbedDocks | \ QMainWindow.GroupedDragging """TODO""" def __init__(self, parent=None): QMainWindow.__init__(self, parent) self.setWindowTitle("Test resizing dockwidget") self.setDockOptions(self._DOCK_OPTS) """TODO""" def startQApp(self): self.main_widget = QWidget( self) self.main_widget.setStyleSheet("background-color: rgb(127,0,0);") self.setCentralWidget(self.main_widget) self.myQDockWidget0=QDockWidget() self.myQDockWidget0.setWindowTitle("QDockWidget #0") self.myQDockWidget0.setStyleSheet("background-color: rgb(0,127,0);") self.myQDockWidget1=QDockWidget() self.myQDockWidget1.setWindowTitle("QDockWidget #1") self.myQDockWidget1.setStyleSheet("background-color: rgb(0,0,127);") self.addDockWidget(Qt.BottomDockWidgetArea, self.myQDockWidget0) self.addDockWidget(Qt.RightDockWidgetArea, self.myQDockWidget1) self.show() self.raise_() return app = QApplication(sys.argv) main=myQMainWindow() print("Qt version:", QT_VERSION_STR) print("SIP version:", SIP_VERSION_STR) print("PyQt version:", PYQT_VERSION_STR) main.startQApp() sys.exit(app.exec_())