qmdiarea menubar
-
how can i add a menu bar for qmdiarea?
-
how can i add a menu bar for qmdiarea?
@user4592357 Why do you need it there? Simply add it to your main window as usual.
-
@user4592357 Why do you need it there? Simply add it to your main window as usual.
@jsulm
i have a main window, and i want the mdi area to be another window-like widget -
is it okay to open another main window from my main window?
-
is it okay to open another main window from my main window?
@user4592357
Yes, you can use as many mainwindows as you like.
(you can even insert QMainWindow as a widget )So even its most normal to have one MainWindow, you can easy have as many you like.
But do note that any widget can be a window.
(if you dont give it a parent when you new it, its a window)
like
QLabel *lab=new QLabel(); // no parent
lab->show();// will actually become a window. -
@user4592357
Yes, you can use as many mainwindows as you like.
(you can even insert QMainWindow as a widget )So even its most normal to have one MainWindow, you can easy have as many you like.
But do note that any widget can be a window.
(if you dont give it a parent when you new it, its a window)
like
QLabel *lab=new QLabel(); // no parent
lab->show();// will actually become a window.@mrjj
yes, but i guess it is only logically a window, because i can't take itsmenuBar()
for example -
@mrjj
yes, but i guess it is only logically a window, because i can't take itsmenuBar()
for example@user4592357
hi
no its a window. But only MainWindow have QMenubar and
QStatusbar and docks . Except docking, QWidget as window can also use menu etc. But if you need this, just use QMainWindow.