Results 1 to 11 of 11

Thread: Is it possible to move main menubar down?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Is it possible to move main menubar down?

    Did you try simply using QMainWindow::setMenuWidget() and passing a complex widget composed of your custom data and a QMenuBar laid out vertically?

    Qt Code:
    1. +-------------------+
    2. |QWidget w. v-layout|
    3. | +---------------+ |
    4. | | CUSTOM WIDGET | |
    5. | +---------------+ |
    6. | | QMenuBar | |
    7. | +---------------+ |
    8. +-------------------+
    To copy to clipboard, switch view to plain text mode 

    Edit: Note that it's available since Qt4.2. In earlier versions you have to stick with mangling with the layout directly.

  2. The following user says thank you to wysota for this useful post:

    gfunk (30th August 2006)

Similar Threads

  1. Replies: 5
    Last Post: 4th August 2006, 23:44
  2. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00
  3. Replies: 3
    Last Post: 31st March 2006, 18:38
  4. Main window
    By Michiel in forum Qt Tools
    Replies: 1
    Last Post: 20th March 2006, 23:54
  5. While statement inside the main loop
    By OnionRingOfDoom in forum Qt Programming
    Replies: 4
    Last Post: 8th February 2006, 18:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.