Hi guys, anyone know how to incorporate QPushButton into if-else statment?
I am using connect function for my program.
I do not know how to let the QPushButton work if it is clicked.

Qt Code:
  1. iampushbutton = new QPushButton;
  2.  
  3. if(iampushbutton->_____?______ )
  4. {
  5. function1();
  6. }
  7. else
  8. {
  9. function2();
  10. }
To copy to clipboard, switch view to plain text mode