blob: 171437c3805a9de37d70c6a3b68aec6c0e1e9f09 (
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
26
27
28
29
30
31
32
33
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Shapes
//![0]
Rectangle {
width: 90; height: 100
color: hoverHandler.hovered ? "wheat" : "lightgray"
containmentMask: shape
HoverHandler { id: hoverHandler }
Shape {
id: shape
containsMode: Shape.FillContains
ShapePath {
fillColor: "lightsteelblue"
startX: 10; startY: 20
PathArc {
x: 10; y: 80
radiusX: 40; radiusY: 40
useLargeArc: true
}
PathLine {
x: 10; y: 20
}
}
}
}
//![0]
|