Qt World Summit: Submit your Presentation


I want to change the position of QMenuBar in the QMainWindow



  • 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.



  • 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.


Log in to reply