Results 1 to 5 of 5

Thread: Removing divider between menubar and rest of main window

  1. #1
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Removing divider between menubar and rest of main window

    Im using Qt 4.4.3 on windows.. My ui was built in designer.. How do I remove the divider thats between the menubar and the rest of the main window?

    I attached an image and circled in red what I want to remove..
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Removing divider between menubar and rest of main window

    Thats default behaviour I guess... it appears everywhere in menus

  3. #3
    Join Date
    Jan 2009
    Posts
    45
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Removing divider between menubar and rest of main window

    I have examples of other programs(not sure what language they are written in) that do not have this divider in them..

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

    Default Re: Removing divider between menubar and rest of main window

    So modify the style your application uses and make sure the bevel is not drawn. As far as I know and remember that's what menu bars used to look like on "old" windows installations.

  5. #5
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Removing divider between menubar and rest of main window

    Hi,

    You may play with the border properties of the menubar. It could also be useful.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.