Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I want to change the position of QMenuBar in the QMainWindow

I want to change the position of QMenuBar in the QMainWindow

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lygstate
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Colon
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved