Results 1 to 2 of 2

Thread: How to mimic the way Qt Creator's menu bar looks?

  1. #1
    Join Date
    Jan 2012
    Posts
    66
    Thanks
    20
    Thanked 2 Times in 2 Posts
    Platforms
    Windows

    Default How to mimic the way Qt Creator's menu bar looks?

    I really like the look of Qt Creator's menu bar in Windows 7 (haven't tried it on other operating systems), as opposed to Windows 7's default light blue menu bar, which I find rather ugly. How can I get the same (or similar) look in my QMainWindow's menuBar()?

    Should I use style sheets, QStyle, or something else?

    One thing I have tried is putting this into my main window's constructor:

    Qt Code:
    1. setStyleSheet("QMenuBar {background-color: rgb(225,225,225);}");
    To copy to clipboard, switch view to plain text mode 

    but it is only applying the gray background to the area to the right of the menu titles (e.g., File, Edit, View, etc.). However, I am not sure if this is even the right approach.

  2. #2
    Join Date
    May 2011
    Posts
    19
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to mimic the way Qt Creator's menu bar looks?

    Take a look at QtCreator source code.

Similar Threads

  1. Replies: 1
    Last Post: 4th November 2011, 11:25
  2. Can I delete qt creator menu entry using plugins?
    By mrsomeonee in forum Qt Tools
    Replies: 5
    Last Post: 29th August 2011, 16:53
  3. how to mimic this functionality with Qt
    By javimoya in forum Qt Programming
    Replies: 9
    Last Post: 28th December 2010, 04:51
  4. centos 5.5: can see qt designer, but not qt creator on menu
    By nina pham in forum Installation and Deployment
    Replies: 0
    Last Post: 17th December 2010, 18:49
  5. Replies: 3
    Last Post: 5th March 2009, 07:27

Tags for this Thread

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.