Hello,

I want to set different color for the menu item. I know there is stylesheet and palette which can be used. But I failed to find the solution. Anyone knows?

My code is like below:
Qt Code:
  1. QAction *show_XZ_action = new QAction("Show XZ plane", this);
  2. show_XZ_action->setCheckable(true);
  3. ....
  4.  
  5. gl_menu->addAction(show_XZ_action);
To copy to clipboard, switch view to plain text mode