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

Dialog closes on release when press happens on an interactive element inside it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.0
    • None

    Description

      Given that I use a modal dialog and its close policy has been set to CloseOnReleaseOutside, if I press on an interactive item which is inside the dialog and then release outside of it(on the popup overlay), dialog closes. On the contrary, if I press on a non-interactive area inside the dialog and then release it the same way, dialog does not close.

      In the attachment, I use a QtQuickControl Dialog and a TextEdit. 

      The expected behavior should be to keep the dialog opened on release, if press happens inside the dialog. This will also fix other cases where there is a flickable inside the dialog and user drags the contentItem but releases outside of the dialog.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            elpidamachairidou Elpida Machairidou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes