[Qt-interest] Check marks to menu item

Andre Somers andre at familiesomers.nl
Mon Mar 8 09:25:24 CET 2010


Kari Laine wrote:
> could someone give me a pointer how to set check mark on menu item and
> also remove it when selected again.
Easiest way, AFAIK, is to build up your menu using QActions. You can 
then use QAction::setChecked() and QAction::setCheckable() to make your 
items checkable and check and uncheck them.

André




More information about the Qt-interest-old mailing list