Is it true that if I add an icon to a checkable QAction, the icon is displayed INSTEAD OF the check indicator? See the accompanying image and code excerpt. Is there a way to display both? This is with Qt 4.8.5 on Windows.

WinIconMenu1-Detail.png

Qt Code:
  1. void IconUtils::addWindowIconActions (QMenu* parMenu, QActionGroup* actGrp)
  2. {
  3. actGrp->setExclusive (true);
  4.  
  5. const QStringList iconNames = windowIconNames();
  6. const int cnt = iconNames.count();
  7.  
  8. for (int inx = 0; inx < cnt; ++inx)
  9. {
  10. const QString iconName = iconNames [inx];
  11.  
  12. QAction* winIconAction = new QAction (actGrp);
  13. winIconAction -> setObjectName (iconName);
  14. winIconAction -> setIcon (windowIconPixmap (iconName));
  15. winIconAction -> setData (QVariant (inx));
  16. winIconAction -> setCheckable (true);
  17. winIconAction -> setChecked (inx == 0);
  18.  
  19. parMenu->addAction (winIconAction);
  20. }
  21. }
To copy to clipboard, switch view to plain text mode 
Thank you in advance,
Phil Weinstein, CADSWES