Qt 6.11 is out! See what's new in the release
blog
Simple override of the QDialog closeEvent(); determing whether user hit OK or Cancel ...
General and Desktop
2
Posts
2
Posters
929
Views
1
Watching
-
Hello,
Title says it all; I have the following code snippet:
@
void QTTestDialog::closeEvent(QCloseEvent *event) {}
@I know how to get this event to fire; but how do I determine whether the user has hit OK or Cancel in my custom QDialog?
I couldn't find out the answer to this via searching Google or the forums, perhaps I searched the wrong place.
Thank you for your time.
-
int QDialog::result() const