title: How to make QMenu Item checkable in QT
body: <p>How to give Qmenu item checkable using QT</p>
  
  <pre><code>QMenu *preferenceMenu = new QMenu();
  preferenceMenu  = editMenu-&gt;addMenu(tr("&amp;Preferences"));
  
  QMenu *Mode1 = new QMenu();
  Mode1  = preferenceMenu-&gt;addMenu(tr("&amp;Mode 1"));
  Mode1-&gt;addAction(new QAction(tr("&amp;Menu1"), this));
  
  QMenu *Mode2 = new QMenu();
  Mode2  = preferenceMenu-&gt;addMenu(tr("&amp;Mode 2"));
  Mode2-&gt;addAction(new QAction(tr("&amp;Menu2"), this));
  Mode2-&gt;addAction(new QAction(tr("&amp;Menu3"), this));
  </code></pre>
  
  <p>On QAction I called slot "slotActionTriggered(QAction* actionSelected)" </p>
  
  <pre><code>void csTitleBar::slotActionTriggered(QAction* actionSelected)
  {
     actionSelected-&gt;setChecked(true);
  }
  </code></pre>
  
  <p>How to show small TICK in the selected Menu# so that user can know which is selected
  Currently I am able to change to all Menu#, but I need to show a small tick on menu so that the selected one can be easly Identified</p>