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

MouseArea not updates pressed after a system move

    XMLWordPrintable

Details

    Description

      This code self-explains the issue:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      /* MouseArea not updates pressed property after requesting a system move
       * - After the mouse button (or equivalent) is released, pressed is still true.
       * - Then the MouseArea consumes any input event until the mouse button is released again.
       * - So you cannot make two consecutive moves, or any other action until you click and release again.
       */
      
      Window {
          id: window
          visible: true
      
          MouseArea {
              anchors.fill: parent
              onPressed: window.startSystemMove()
              onPressedChanged: console.log("Contains press:", containsPress)
          }
      
          Button {
              anchors.centerIn: parent
              text: "Press the blank area,\nthen click me"
              onClicked: console.log("Button clicked!")
          }
      }
      
      

      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
            ceperez1996 Carlos PĂ©rez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes