Is there an elegant way to disable the default button in a QDialog ?
Is there an elegant way to disable the default button in a QDialog ?
I don't know how to do this if you use Designer -> Dialog(with buttons), but
you can create your own buttons and use: okButton->setDisabled(true); //in the class constructor
And connect some signal (bool) to setEnable(bool) slot of the button (if user edits something.. or what should trigger the activation of okButton)
Last edited by Zlatomir; 4th June 2010 at 16:48.
Bookmarks