Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69095

Add a way to prevent a dialog from closing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.6
    • Quick: Dialogs
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mardy Alberto Mardegan
            mardy Alberto Mardegan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes