Simply use a QMainWindow instead of QWidet. QMainWindow is a normal QWidget so it could be used whereever you also can use a widget. There is no restriction to use QMainWindow only as the topmost widget.
I can't, because I want to use it inside a QTabWidget.
Originally Posted by high_flyer
I don't think you can, since AFAIK the dock area behavior is only implemented by QMainWindow.
If you want the docking behavior , you will have to implement it in the parent widget.
Is there a reason why it is only implemented in QMainWindow or do you think it could be added to QWidget, too ?
Then I could create a feature request...
Bookmarks