I have a Menu with 4 menu items (QAction* objects) and I want to always keep highlighted a particular menu item.
If I have a menu item "Settings" and if a widget opens when I select "Settings", the menu should be displayed with "Settings" highlighted.
I tried to apply QStyleSheet on QMenu, but it would not help to keep a menu item permanently selected.
I also tried QWidgetAction* instead of QAction* and tried adding QLabel* to QWidgetAction. But it didn't work
It would be great if any one of you can help me with this.
Thanks in advance