You have a typo! Skip the ")".
Qt Code:
menubar->setStyleSheet("background-color: red;");To copy to clipboard, switch view to plain text mode
You have a typo! Skip the ")".
Qt Code:
menubar->setStyleSheet("background-color: red;");To copy to clipboard, switch view to plain text mode
I corrected that but still not showing the menubar
if i skip the line menubar->setStyleSheet("background-color: red;");
it shows the normal qmenubar.
what is the problem in setting stylesheet
It's because you have not put the menubar in a layout! If you don't want to do so call then the menu bar is shown. (Skip your geometry line.)
anupamgee (29th April 2009)
Bookmarks