Ashot
Ashot

Reputation: 10959

QDialog with ok and cancel buttons

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.

Upvotes: 7

Views: 24376

Answers (1)

cmannett85
cmannett85

Reputation: 22346

Subclass QDialog and use a QDialogButtonBox for the standard buttons (docs).

Upvotes: 12

Related Questions