I have a QMenu (myMenu) and I want to use setStyleSheet to set
-- background to yellow
-- menu item text to red when hovered over.
I have tried zillions of alternatives, including
Qt Code:
myMenu.setStyleSheet("* {background-color : yellow } *:hover {color : red }");To copy to clipboard, switch view to plain text mode
I cannot seem to get the right syntax for this. Any help would be gratefully received.
Bob
Bookmarks