can i donot setCentralWidget in QMainWindow?
-
can i donot setCentralWidget in QMainWindow?
and then i just add some dockWidget there. but without a CentralWidget.
is it safe to donnot set it? -
Hi
Well docs says
"Note: Creating a main window without a central widget is not supported. You must have a central widget even if it is just a placeholder." -
@mrjj said in can i donot setCentralWidget in QMainWindow?:
placeholder
placeholder? simply setCentralWIdget(new QWidget())?
-
Hi
well what do you try to do ?
i would say setVisible(false); if you try to hide it.Normally all other widgets live in CentralWidget
so its odd if you want to hide it. -
Hi
well what do you try to do ?
i would say setVisible(false); if you try to hide it.Normally all other widgets live in CentralWidget
so its odd if you want to hide it. -
I would support a central widget by implementing drag-n-drop of docks into the center and vise versa.
-
Hi
well what do you try to do ?
i would say setVisible(false); if you try to hide it.Normally all other widgets live in CentralWidget
so its odd if you want to hide it. -
@mrjj said in can i donot setCentralWidget in QMainWindow?:
Normally all other widgets live in CentralWidget
Normally all other widgets live in CentralWidget? but i think the DockWidget is in the MainWindow which is their parent.