Placing a QMenuBar within the Designer
Solved
General and Desktop
-
Hi. I'm trying to build a new class, basically a menu bar. I have set up a new Qt designer form class (with the ui file), but I'm wondering where, in the widget lists, is QMenuBar. Is QMenuBar not available within the designer?
I know a QMenuBar can be implemented within the cpp file but I would like to try implementing it on designer first. -
You can't make a top level menu bar in the designer. It supports menu bars only on QMainWindow.
Menu bars are just containers for actions. There's not much to design in them anyway. Unless you're willing to make a custom designer plugin you'll have to make your class in code.