Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
I want to change the position of QMenuBar in the QMainWindow
lygstate last edited by
I hope there is such a way to do that.
Or maybe have other methods to put QMenuBar into widget?
That's really not easy to use QMenuBar in QT,
I didn't gotcha the idea of specialize the QMenuBar and QStatusBar and QToolBar.
I want to use it in a generalized way, but it's seems impossible.
Colon last edited by
Just use a simple Widegt instead of a QMainWindow, add a layout
(i use a gridlayout) to the widget. Create you QMenuBar, QStatusBar ... as
child of the widget and then add QMenuBar, QStatusBar ... to the layout at the positions you want.