Hi,
I have an application that allows allows new widgets to be created, much like an MDI interface.
I make a new menu Action when I create a new widget so the user can raise() the selected widget from a Windows Menu.

I have trouble when the user clicks on one of the menu actions.

Qt Code:
  1. {
  2. boardWindow->menuAction = new QAction(text, this);
  3. menuWindow->addAction(boardWindow->menuAction) ;
  4.  
  5. connect(boardWindow->menuAction, SIGNAL(triggered()), this, SLOT(selectWindow(boardWindow->menuAction->text())));
  6. }
  7.  
  8.  
  9. void MainWindow::selectWindow(QString text)
  10. {}
To copy to clipboard, switch view to plain text mode 

I want to do something like above, pass the text or the QAction that initiated the signal. So that I can determine which one it is and thus raise() the appropriate widget.

I keep the menu Actions in a vector of class
Qt Code:
  1. class BoardWindow // For a new board vector.
  2. {
  3. public:
  4. QAction* menuAction;
  5. boost::shared_ptr<MainBoard> mainBoard;
  6. int identifier; // A unique id
  7. };
To copy to clipboard, switch view to plain text mode 

Any ideas, there must be a way, probably very simple.
Thanks.