[Interest] QMessageBox - Accept/Reject
André Somers
andre at familiesomers.nl
Fri Apr 28 21:03:23 CEST 2017
> Op 28 apr. 2017 om 20:34 heeft Konstantin Shegunov <kshegunov at gmail.com> het volgende geschreven:
>
> Hi,
> Employ like this:
>
> dlg.exec();
> if (dlg.clickedButton() == btn)
> qDebug() << "Yes was clicked";
>
> However, why not make use of the standard buttons, which already
> include "Yes"/"No"?
Better yet, use a verb that expresses what will happen. Save is also standard, but otherwise you should set a text explicitly. Just Yes an No as buttons make for a horrible user experience.
André
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list