How to disable a window without menuBar?
is it possible to disable a whole window just without menuBar?
no, once a widget is disabled all of its (grand-)children are also disabled.
Qt follows parent child relationship .
mentions the relationship.
hope this helps you.
For QMainWindow: If you want to disable the contents of the window, not the entire window, just disable the centralWidget() and toolbars. If the window is a QWidget and not a QMainWindow then make a single widget to act as the content area and enable/disable that.