Hi All
I've a tool button . i'm adding some action to that toolbutton. when i trigger that action i need some methode to b executed. i did like following.
Qt Code:
  1. header file
  2. ------------------
  3. QAction *m_action;
  4. actionlist();
  5.  
  6. source file
  7. -----------------------
  8. ui->toolButton->addAction(action);
  9.  
  10. constructor()
  11. {
  12. connect(m_action,SIGNAL( triggered()),
  13. this, SLOT(claamethode()));
  14. }
  15. void actionlist()
  16. {
  17. m_action = new QAction(m_strTempName,ui->toolButton_3);
  18. // assiging m_action here
  19. ui->toolbutton->addaction(m_action);
  20.  
  21. }
To copy to clipboard, switch view to plain text mode 
But connect methode is not working. how to solve this?