Results 1 to 3 of 3

Thread: Center QMenuBar

  1. #1
    Join Date
    May 2007
    Posts
    32
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Center QMenuBar

    I need in QMenuBar set all QMenu in the centre
    See at the example:

    [HTML]| | | File | Edit | | |[/HTML]

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Center QMenuBar

    Why...? Menu items are not widgets but drawn on the fly so I'm afraid there's no other way to hack around this but rewrite a custom menu bar.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Center QMenuBar

    You could probably do that by implementing a custom style (I think Mac has something simmilar with tab bars), but I don't really see a point of doing that.

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.