I need Qt Dialog with ok and cancel buttons with standard functionality, placed on the right side of its layout. I need to inherit from it and add other widgets to its layout. I can implement it myself, but maybe there is something standard, in that case I prefer to use it, since it will be more portable.
QMessageBox shows a message, I need something more general, only QDialog and standard buttons, or maybe QDialog has an option which activates them.
QDialogButtonBox allows a developer to add buttons to it and will automatically use the appropriate layout for the user's desktop environment. Most buttons for a dialog follow certain roles. Such roles include: Accepting or rejecting the dialog. Asking for help.
Disabling the Esc key that in QDialog closes/cancels the dialog.
Subclass QDialog
and use a QDialogButtonBox
for the standard buttons (docs).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With