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):
My problem is: what should I put in the code instead of "MYRESETBUTTON"?Qt Code:
{ if(button==MYRESETBUTTON){ HERE GOES MY CODE } }To copy to clipboard, switch view to plain text mode
In other words, where can I find the name of the pointer to the Reset button?
Thanks to anyone that would consider answering.
Bookmarks