Hello, i created a menu entry in this way:
Qt Code:
  1. QMenuBar *twmmenuBar;
  2. twmmenuBar = new QMenuBar(twmMainWindow);
  3.  
  4. QMenu *menuTools;
  5. menuTools = new QMenu(twmmenuBar);
  6. menuTools->setObjectName(QString::fromUtf8("menuTools"));
  7. twmmenuBar->addAction(menuTools->menuAction());
  8. menuTools->setTitle(QApplication::translate("twmMainWindow", "Tools", 0, QApplication::UnicodeUTF8));
To copy to clipboard, switch view to plain text mode 
why this connections doesn't work?
Qt Code:
  1. connect ( ui.menuTools , SIGNAL ( triggered( QAction *) ) , this , SLOT ( mySlot QAction * ) ) );
To copy to clipboard, switch view to plain text mode 
I get this error:
Qt Code:
  1. error: ‘SIGNAL’ was not declared in this scope
To copy to clipboard, switch view to plain text mode 
i checked here
http://doc.trolltech.com/4.2/qmenu.html#triggered
and menuTools is QMenu Object and it should be able to emit the triggered( QAction *) signal.
My needs is throw a slot when menuTools is clicked.
thx