[Development] Handling specific platform events in Qt

Alan Alpert 416365416c at gmail.com
Fri Jun 28 18:59:30 CEST 2013


On Fri, Jun 28, 2013 at 3:23 AM, Friedemann Kleint
<Friedemann.Kleint at digia.com> wrote:
> Hi,
>
> QApplicationStateChangeEvent and enumeration Qt::ApplicationState are
> intended for this purpose. Feel free to propose additional states if
> they are not sufficient for your purposes.
>
> On the QPA side, they are triggered by
> QWindowSystemInterface::handleApplicationStateChanged().
>
> I can't be sure whether this is accessible by QML, currently?

This should be accessible via Qt.application.active (false if
paused/minimized or otherwise not visible).

--
Alan Alpert



More information about the Development mailing list