Results 1 to 7 of 7

Thread: Bar on menubar?

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

    Default Bar on menubar?

    Hi fellas,

    I want to put a bar which I can put textfields or list boxs inside it and stays between the menubar and the main window's bar( the bar which resize and close icons stay).

    Have you got an idea?

  2. #2
    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: Bar on menubar?

    The menu bar should be the top-most item in the layout. If you change that, you'll be breaking one of the fundamental UI design principles. If you are sure you want to do that, you have to access QMainWindow's layout() and insert the widgets you want there manually but I really wouldn't do that if I were you. Find another design even if it means putting a second QMenuBar instance somewhere in the window (which I wouldn't advise as well, better use a QToolBar or other regular widgets).

  3. #3
    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: Bar on menubar?

    Hi,

    First thanks for your valuable comments. I know it doesn't seem the correct solution but I tried many ways to perform this task which I failed at the end. I'am trying to add extra menu bar as a tabbed menu, which I don't know the exact way if there is a way to do that, and I will post the result as soos as I find a solution.

    Regards, Zeki

  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: Bar on menubar?

    You mean something like a ribbon?

  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: Bar on menubar?

    Yeah..that's what I'am trying.

  6. #6
    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: Bar on menubar?

    Well... there are three things to consider:
    1. there is a ribbon implementation available somewhere in the internet but you may have to search for it
    2. you can implement a ribbon-like widget using a dock widget
    3. there are licensing issues when using a ribbon. Microsoft has some patent for using it in "office-like" applications or something so it's easy to fall of a cliff as most applications can be considered "office-like".

    There is also the "ribbon sucks" argument, but that's subjective...

  7. #7
    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: Bar on menubar?

    Hi,

    Anyone got any idea about this topic?

Similar Threads

  1. Moving menu to the right menubar corner
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2008, 05:24
  2. Showing and hiding menubar
    By borges in forum Newbie
    Replies: 1
    Last Post: 23rd September 2007, 10:56
  3. QActions don't work with menubar hidden
    By Pepe in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 01:04
  4. menuBar() Problem
    By Cutey in forum Qt Programming
    Replies: 9
    Last Post: 25th January 2007, 11:50
  5. Replies: 2
    Last Post: 12th November 2006, 08:47

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.