<div dir="ltr"><div><div>Hello,<br><br>I'm trying to utilze ApplicationWindow.applicationActive to set the cover text. But the onApplicationActiveChanged signal isn't emitted, and the applicationActive property is always true. (When I used an cover action logging the applicationActive property, it was printed as true, even though the app was minimized)<br>
<br></div>Some of the code;<br></div>main.qml:<br><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">import QtQuick 2.1<br>import Sailfish.Silica 1.0<br>
import BigText 1.0<br>import "pages"<br><br>ApplicationWindow<br>{<br> id: appwin<br> initialPage: MainPage { }<br> cover: Qt.resolvedUrl("cover/CoverPage.qml")<br><br> Settings {id: settings}<br>
property string bigTextFontFamily: (settings.fontFamily != "") ? settings.fontFamily : Theme.fontFamily<br> property string bigTextText<br><br> Component.onDestruction: console.log("quitting")<br>
onApplicationActiveChanged: console.log("active = " + applicationActive)<br><br>}<br clear="all"></blockquote><div><br></div><div>CoverPage.qml<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
import QtQuick 2.0<br>import Sailfish.Silica 1.0<br><br>CoverBackground {<br> Label {<br> id: label<br> anchors.centerIn: parent<br> text: bigTextText<br> }<br><br> CoverActionList {<br> id: coverAction<br>
<br> CoverAction {<br> iconSource: "image://theme/icon-cover-next"<br> onTriggered: console.log(appwin.applicationActive)<br> }<br> }<br>}<br></blockquote><br></div><div>What am I doing wrong? Or is it a bug?<br>
</div><div><div><div><div>--</div>Marcin<br></div>
</div></div></div></div>