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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Labels:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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