Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.6
-
None
Description
When the user presses the OK button on a QtQuick.Dialog having the default contentItem (with the proper standardButtons property set), the dialog is closed immediately, without giving the developer a chance to validate the contents.
One option could be adding a closing() signal like QtQuick.WIndow has, or add a parameter to the (undocumented) buttonClicked() signal, carrying an object with an "accepted" flag which can be set to true to prevent further processing of the event.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-69095 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
233387,4 | Dialogs: allow preventing processing of standard buttons | dev | qt/qtquickcontrols | Status: MERGED | +2 | 0 |