title: Working with a QMenu and passing of arguments
body: <p>I have a <code>QMenu</code>which has several menu items built dynamically.</p>
  
  <p>To this end, I iterate over a collection of menu items, containing the name and Action ( which would need to be taken if the menu item were hit), and keep adding them to a the context menu. All the menu items need to be connected <strong>to a common slot</strong>. </p>
  
  <p>But somehow the trigger action does not happen. i.e. the connect statement is reached, but the control does not pass into the specified SLOT, no action is taken.</p>
  
  <pre><code>for (int i=0; i&lt;Action_List.size();i++)
  {
      tempAct1 = Action_List.at(i); //Action List has the list of Actions
      Context_Menu-&gt;addAction(tempAct1);
  }
  if (Context_Menu!=NULL) {
      Context_Menu-&gt;exec(QCursor::pos());
      int r = connect(Context_Menu, SIGNAL(triggered(QAction *)), 
                      this, SLOT(SPlusCommand(QAction *)));
  }
  
  int P14MainWindow::SPlusCommand ( QAction* Action)
  {
      QVariant tempstr = Action-&gt;data();
      QString Qs = tempstr.toString();
      return QPwLocalClient::ExecuteCommand(Qs);
  }
  </code></pre>
  
  <p>Can anyone tell me where I'm going wrong with this, please?</p>