aboutsummaryrefslogtreecommitdiffstats
path: root/sample-qml/main2.qml
blob: f2ff4c99dd36442890f493b3c5e56654eede48cf (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
import QtQuick 2.6
import QtQuick.Window 2.2

Window {
    visible: true
    width: 1080
    height: 1920
    title: qsTr("AGL sample qml app")

    MainForm {
        anchors.fill: parent
        mouseArea.onClicked: {
            Qt.quit();
        }
    }
    onVisibleChanged: {
        if(visible == true)
        {
            console.log("2:visible true")
            console.log("maybe it is okay")
        }
        else{
            console.log("visible2 false")
        }
    }

}