I'm using a QMessageBox with a Yes and No, and it puts the default focus on the Yes button. Is there a way to put the default focus on the No button instead?
I'm using a QMessageBox with a Yes and No, and it puts the default focus on the Yes button. Is there a way to put the default focus on the No button instead?
Software Engineer
It's the defaultButton parameter of static QMessageBox::question() (or QMessageBox::setDefault() in case you're actually instantiating a QMessageBox object).
J-P Nurmi
gfunk (26th October 2007)
Bookmarks