I have QDialogButtonBox with "Reset" "OK" and "Close"
To OK and Close I use:
Qt Code:
To copy to clipboard, switch view to plain text mode
How write code to Reset button ? I don't find any examples for ResetRole ...
I have QDialogButtonBox with "Reset" "OK" and "Close"
To OK and Close I use:
Qt Code:
To copy to clipboard, switch view to plain text mode
How write code to Reset button ? I don't find any examples for ResetRole ...
See the QDialogButtonBox::clicked() signal.
something like this ?
Qt Code:
... QObject::connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(buttons(QAbstractButton*))); } { if (button->text() == tr("Reset")) button_reset(); else if (button->text() == tr("OK")) button_ok(); else if (button->text() == tr("Close")) button_close(); }To copy to clipboard, switch view to plain text mode
Yes, but better:
Qt Code:
// Help was clickedTo copy to clipboard, switch view to plain text mode
In qt 4.7 I found that a beter solution is
Qt Code:
{ //Do Something }To copy to clipboard, switch view to plain text mode
And would you kindly elaborate, why your solution is better? It seems to me you are saying that is better than
Bookmarks