title: Adding slots to automatically created menu items
body: <p>I have an existing menu called save and in it i want to add two menus,Save New and Save Edits.</p>
  
  <pre><code>QMenu *menu = new QMenu(this);
  menu-&gt;addAction("Save New");//void saveNew()
  menu-&gt;addAction("Save Edits");//void saveEdits()
  ui.saveButton-&gt;setMenu(menu);
  </code></pre>
  
  <p>I have looked up for a suitable function and found this but i need help implemening it.</p>
  
  <pre><code>QAction * QMenu::addAction ( const QString &amp; text, const QObject * receiver, const char * member, const QKeySequence &amp; shortcut = 0 )
  </code></pre>
  
  <p>How can i do it?.</p>