In Windows when I create a QMainWindow I can move it around the screen by clicking the title bar and dragging it.
In my application I\'ve hidden the title bar by using <
You just need to implement the necessary mouse event handling by overwriting MyWidget
's mousePressEvent()
, mouseMoveEvent()
and mouseReleaseEvent()
handlers.
You can get the window (top level widget) from inside MyWidget
through the window()
method.