What's the correct way to apply styles for a QMenu object?
I'm trying this:
QMenu contextMenu(tr("Context menu"), this);
contextMenu.addAction(new QAction(tr("Hello"), this));
contextMenu.setStyleSheet("*:hover { color:#FFF; } *:!hover { color:#aaa; }");
I'm trying to set different text colors for when the mouse is over the menu option and when the mouse isn't over the option. But it's not working.