Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.1
-
None
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!") } }