qt6-bb10/qtdeclarative/tests/auto/quick/qquickmousearea/data/moveAndReleaseWithoutPress.qml

15 lines
268 B
QML

import QtQuick 2.0
MouseArea {
width: 200
height: 200
property bool hadMove: false
property bool hadRelease: false
onPressed: function (mouse) { mouse.accepted = false }
onPositionChanged: hadMove = true
onReleased: hadRelease = true
}