Nov-28-2022, 05:20 PM
QMainWindow has a central widget. You can make this any kind of widget you like, including a QWidget which is blank. Then you can add a layout manager to the central widget to help you position other widgets within this widget. You can even stack widgets on top of each other. I used this to make a tool ribbon (a tab like interface that uses tool bar buttons in place of tabs).
I only use a QMainWindow when I want a menu and a status bar. I don't use the docking capabilities very often because Qt's docking is not very flexible. Normally I subclass QWidget to make my own window classes. I find this gives me more freedom than using QMainWindow.
I only use a QMainWindow when I want a menu and a status bar. I don't use the docking capabilities very often because Qt's docking is not very flexible. Normally I subclass QWidget to make my own window classes. I find this gives me more freedom than using QMainWindow.