<div dir="ltr">Hello. Please repeat your actual question. I dont understand what the problem is and what are you trying to achieve.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 3 дек. 2019 г. в 01:27, Thomas Eigel <<a href="mailto:yurumi@gmx.de">yurumi@gmx.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>Hi all,</div>

<div> </div>

<div>I have a quite special question: When my app (schwarzenmaker) runs in the background, an overlay is visible to show some kind of progress. If the app is closed from home screen the program keeps up running (cover disappears but 'ps aux' still showing the process and overlay still visible). Closing works as expected when the overlay is hidden beforehand.</div>

<div> </div>

<div>I tried listening to different signals but to no avail:</div>

<div> </div>

<div>  - quit, aboutToQuit: Don't seem to be emitted since the program is not quitting until the overlay is hidden.</div>

<div>  - onStatusChanged: Is emitted when app is moved to background (Qt.ApplicationInactive) but no new signal when app is "closed".</div>

<div> </div>

<div>The code to create the overlay (which I don't fully understand) can be sketched as follows:</div>

<div> </div>

<div>m_overlayView = SailfishApp::createView();</div>

<div>
<div>m_overlayView->setSource(SailfishApp::pathTo("qml/components/overlay.qml"));<br>
m_overlayView->create();<br>
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();<br>
native->setWindowProperty(m_overlayView->handle(), QLatin1String("CATEGORY"), "notification");<br>
native->setWindowProperty(m_overlayView->handle(), QLatin1String("MOUSE_REGION"), QRegion(0, 0, 0, 0));</div>

<div>m_overlayView = SailfishApp::createView();</div>

<div> </div>

<div>Maybe closing fails because another "window" is created. So my question is: Does anybody know how to detect the attempted closing of the app?</div>
</div>

<div> </div>

<div>Cheers,</div>

<div>Thomas</div></div></div>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>