I have a QDialogButtonBox with Reset, OK, Cancel buttons. This was created (i.e. put in a dialog windows) using Qt Designer.
To intercept clicks on OK and Cancel buttons is straightforward using accepted() and rejected() signals.

To intercept clicks on the Reset button I have to use the following signal:
void clicked(QAbstractButton * button)
I.e. I can use the following slot (CProgOptions is the class name of my dialog window):

Qt Code:
  1. void CProgOptions::on_buttonBox_clicked(QAbstractButton *button)
  2. {
  3. if(button==MYRESETBUTTON){
  4. HERE GOES MY CODE
  5. }
  6. }
To copy to clipboard, switch view to plain text mode 
My problem is: what should I put in the code instead of "MYRESETBUTTON"?
In other words, where can I find the name of the pointer to the Reset button?

Thanks to anyone that would consider answering.