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

Double click on mouse area doesn't work after closing popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.4.3, 6.5.0
    • Quick: Controls 2
    • None
    • Android, Linux/X11

    Description

      i have code like:

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          Popup {
              id: popup
              anchors.centerIn: parent
              width: 200
              height: 200
              modal: true
              focus: true
              closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
              MouseArea {
                  anchors.fill: parent
                  onClicked: popup.close()
              }
          }
          MouseArea{
              anchors.fill: parent
              onDoubleClicked: {
                  console.log("_________ DOUBLE CLICKED _________")
                  popup.open()
              }
          }
      }

      After opening a popup window with a MouseArea and closing it, the MouseArea double click handler does not work.

      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
            tonyk Tony K
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes