Results 1 to 5 of 5

Thread: Customize the menubar and menus

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Customize the menubar and menus

    Is there a method to customize colors, fonts, etc for the menubar, menus, separators etc ?

    Thanks

  2. #2
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Customize the menubar and menus

    I have never tried on this, but what about using style sheets?

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Customize the menubar and menus

    Yes, you are right
    I did not think about it ...
    But I'd want to do something at code level.??? Any example ?
    Thanks

  4. #4
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Customize the menubar and menus

    How do you mean at the code level? You can always use QWidget::setStyle(QStyle * style), no?

  5. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Customize the menubar and menus

    Yes... you are right
    Thanks

Similar Threads

  1. Context Menus
    By qtoptus in forum Newbie
    Replies: 0
    Last Post: 25th June 2010, 16:18
  2. Context Menus
    By rodlbr in forum Qt Programming
    Replies: 4
    Last Post: 7th September 2009, 17:30
  3. Accessible menus
    By NickPoole in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2009, 10:30
  4. different pop up menus wanted...
    By nupul in forum Newbie
    Replies: 5
    Last Post: 11th February 2009, 08:04
  5. Menus in QT Designer
    By bkv in forum Newbie
    Replies: 1
    Last Post: 7th October 2006, 12:18

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.