aboutsummaryrefslogtreecommitdiff
path: root/main_view.qml
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-15 18:10:52 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-15 18:10:52 -0300
commit0b6df071d94ae8f7c9cdd3c96506a1420129e471 (patch)
treeea73a59457beba89ef6bab2b16d2d679d8dd1078 /main_view.qml
Initial commit. ForceScheme seems bugged.
Diffstat (limited to 'main_view.qml')
-rw-r--r--main_view.qml40
1 files changed, 40 insertions, 0 deletions
diff --git a/main_view.qml b/main_view.qml
new file mode 100644
index 0000000..bf143fc
--- /dev/null
+++ b/main_view.qml
@@ -0,0 +1,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
+ }
+ }
+}