[SOLVED]How to know that my application went to the background on N950?
-
Hi all,
How can I know that my application minimized to the background on N950?
I tried @Page{
onStatusChanged:{
console.log("status changed)
}
}@but without any result , I always got
bq. Meego graphics system destroyed -
-
I solved it.
I made a timer and check if the application is active or not through this property
Qt.application.active -
Using a timed event instead of a signal/slot connection is more cpu heavy.
@Connections {
target: platformWindow
onActiveChanged: {if (platformWindow.active) { //App became active } else { //App became inactive } } }@
Or you may simply use data binding since platformWindow.active is a boolean.