aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreenNG/qml/main.qml
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-02 11:19:51 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-02 13:14:55 +0900
commit6bf5bbd0ab5abab05305667a516c069c7c5556f4 (patch)
treef2cf3278c383771ff1b40dae2c72b0f08fdd69ef /HomeScreenNG/qml/main.qml
parent505ec164e5174ddd838c0cac1e3e828930cb3b50 (diff)
WIP: add Qt Quick HomeScreen UI
Change-Id: I2be964f6d9e76df616169d7b2654d17ae9446687 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'HomeScreenNG/qml/main.qml')
-rw-r--r--HomeScreenNG/qml/main.qml44
1 files changed, 44 insertions, 0 deletions
diff --git a/HomeScreenNG/qml/main.qml b/HomeScreenNG/qml/main.qml
new file mode 100644
index 0000000..e9774ae
--- /dev/null
+++ b/HomeScreenNG/qml/main.qml
@@ -0,0 +1,44 @@
+import QtQuick 2.7
+import QtQuick.Window 2.2
+import QtQuick.Layouts 1.1
+
+Window {
+ visible: true
+ flags: Qt.FramelessWindowHint
+ width: container.width * container.scale
+ height: container.height * container.scale
+ title: 'HomeScreen'
+
+ Image {
+ id: container
+ anchors.centerIn: parent
+ width: 1080
+ height: 1920
+ scale: 0.7
+ source: './images/AGL_HMI_Background_NoCar-01.png'
+
+ ColumnLayout {
+ anchors.fill: parent
+ spacing: 0
+ TopArea {
+ id: topArea
+ Layout.fillWidth: true
+ Layout.preferredHeight: 218
+ }
+
+ Item {
+ id: applicationArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 1920 - 218 - 215
+ }
+
+ MediaArea {
+ id: mediaArea
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.preferredHeight: 215
+ }
+ }
+ }
+}