Add sample qml application
[staging/HomeScreen.git] / sample-qml / main.qml
1 import QtQuick 2.6
2 import QtQuick.Window 2.2
3 import "apps/HVAC"
4 import "imports"
5 import "dummyimports"
6
7 Window {
8     visible: true
9     width: 1080
10     height: 1920
11     title: qsTr("AGL sample qml app")
12
13     //MainForm {
14     //    anchors.fill: parent
15     //    mouseArea.onClicked: {
16     //        Qt.quit();
17     //    }
18     //}
19     HVAC {
20         id: hvc
21         width: 1080
22         height: 1920
23         visible: true
24     }
25     onVisibleChanged: {
26         if(visible == true)
27         {
28             console.log("visible true")
29             console.log("maybe it is okay")
30             hsa.consoleout()
31             hsa.refresh();
32         }
33         else{
34             console.log("visible false")
35         }
36     }
37
38 }