Code Review
/
staging
/
HomeScreen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
prepend 'emit' keyword whenever emiting signal
[staging/HomeScreen.git]
/
sample-qml
/
main2.qml
1
import QtQuick 2.6
2
import QtQuick.Window 2.2
3
4
Window {
5
visible: true
6
width: 1080
7
height: 1920
8
title: qsTr("AGL sample qml app")
9
10
MainForm {
11
anchors.fill: parent
12
mouseArea.onClicked: {
13
Qt.quit();
14
}
15
}
16
onVisibleChanged: {
17
if(visible == true)
18
{
19
console.log("2:visible true")
20
console.log("maybe it is okay")
21
}
22
else{
23
console.log("visible2 false")
24
}
25
}
26
27
}