blob: ad4494eb25b027f4656a1a2bfa9d2ded7a48aba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.12
Item {
width: 640
height: 480
property alias touchpointPressed: tp1.pressed
Rectangle {
color: tp1.pressed ? "lightsteelblue" : drag.active ? "tomato" : "wheat"
width: 180
height: 180
DragHandler { id: drag }
MultiPointTouchArea {
anchors.fill: parent
touchPoints: [
TouchPoint { id: tp1 }
]
}
}
}
|