aboutsummaryrefslogtreecommitdiff
path: root/main_view.qml
blob: bf143fc45653391c0e72d238c9c12c773de45b17 (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
34
35
36
37
38
39
40
import QtQuick 2.0
import PM 1.0

Item {
    width: 480
    height: 480

    Scatterplot {
        id: plot
        objectName: "plot"
        anchors.fill: parent
    }

    Item {
        id: messageBox
        anchors.right: parent.right
        anchors.left: parent.left
        anchors.bottom: parent.bottom

        Rectangle {
            color: Qt.rgba(1, 1, 1, 0.7)
            radius: 5
            border.width: 1
            border.color: "white"
            anchors.fill: messageLabel
            anchors.margins: -10
        }

        Text {
            id: messageLabel
            color: "black"
            wrapMode: Text.WordWrap
            text: "The background here is a squircle rendered with raw OpenGL using the 'beforeRender()' signal in QQuickWindow. This text label and its border is rendered using QML"
            anchors.right: parent.right
            anchors.left: parent.left
            anchors.bottom: parent.bottom
            anchors.margins: 20
        }
    }
}