QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoGridLines.qml
Go to the documentation of this file.
1pragma ComponentBehavior: Bound
2
3import QtQuick
4
5// Rule-of-thirds grid lines over the video.
6Item {
7 id: root
8
9 readonly property color _lineColor: Qt.rgba(1, 1, 1, 0.5)
10
11 Repeater {
12 model: 2
13
14 Rectangle {
15 required property int index
16
17 x: root.width * (index + 1) / 3
18 width: 1
19 height: root.height
20 color: root._lineColor
21 }
22 }
23
24 Repeater {
25 model: 2
26
27 Rectangle {
28 required property int index
29
30 y: root.height * (index + 1) / 3
31 width: root.width
32 height: 1
33 color: root._lineColor
34 }
35 }
36}