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:
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.
Bookmarks