aboutsummaryrefslogtreecommitdiffstats
path: root/SampleMediaApp/qml
diff options
context:
space:
mode:
authorBocklage, Jens <Jens_Bocklage@mentor.com>2016-11-04 17:23:50 +0100
committerBocklage, Jens <Jens_Bocklage@mentor.com>2016-11-04 17:23:50 +0100
commit1876ff11a182afb1cf0180f188a2e13ad7b8095c (patch)
treebca3471c1588a93ed6e6d13e8f835da6fc72a60c /SampleMediaApp/qml
parentbf0f33bec5ad705666dff6c821334524c1b81583 (diff)
Add two sample apps just to have some Qt based applications that can be launched.
Nav is Qt widget based. Media is QML based. Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'SampleMediaApp/qml')
-rw-r--r--SampleMediaApp/qml/SampleMediaApp/main.qml30
1 files changed, 30 insertions, 0 deletions
diff --git a/SampleMediaApp/qml/SampleMediaApp/main.qml b/SampleMediaApp/qml/SampleMediaApp/main.qml
new file mode 100644
index 0000000..7d63362
--- /dev/null
+++ b/SampleMediaApp/qml/SampleMediaApp/main.qml
@@ -0,0 +1,30 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 300
+
+
+ Rectangle {
+ width: parent.width / 2
+ height: parent.height
+ color: "yellow"
+
+ Text {
+ text: qsTr("SampleMediaApp")
+ anchors.centerIn: parent
+ }
+ }
+
+ Rectangle {
+ width: parent.width / 2
+ height: parent.height
+ x: parent.width / 2
+ color: "yellow"
+
+ Text {
+ text: qsTr("default size: 400x300px")
+ anchors.centerIn: parent
+ }
+ }
+}