No, you don't. You need a central widget to satisfy the requirements for using QMainWindow. You need to design a custom QWidget that has the layout and behavior you want and use that as the central widget. Just because a QDockWidget -looks- like something you could use, and just because you -can- add a layout directly to QMainWindow doesn't mean it is going to behave as you wish (but seem unwilling to accept).I know that, but I need to have a centralDock.
Bookmarks