I don't know python, but how could you do this in C ++, itβs something like this:
QPushButton *resetButton = ui->buttonBox->button(QDialogButtonBox::Reset); connect(resetButton, signal(clicked()), this, SLOT(myResetFunc()));
This, of course, requires you to set the QDialogButtonBox::Reset role to your reset button.
Using button , you can get your reset button and connect it to your slot. This is a list of roles that your buttons may have. Hope this helps.
thuga source share