[SailfishDevel] QML DeviceInfo

Peter Pykäläinen peter.pykalainen at gmail.com
Tue Apr 29 04:00:20 UTC 2014


Thank you so much.
I will give this a try.

// Peter Pykäläinen
29.4.2014 6.43 kirjoitti "Lorn Potter" <lorn.potter at jolla.com>:

>
> On 29 Apr 2014, at 5:09 am, Peter Pykäläinen <peter.pykalainen at gmail.com>
> wrote:
>
> > Hi,
> >
> > any idea on how to use QML DeviceInfo on Sailfish?
> > I have been searching for a solution to get the event when device screen
> is
> > locked (onLockStatusChanged), but apparently the imports are not working
> /
> > not allowed.
>
> DeviceInfo no longer has that functionality in Qt 5.
>
> Try something like this:
>
> https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.cpp
>
> https://github.com/nemomobile/connectionagent/blob/master/connd/wakeupwatcher.h
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140429/19a81d54/attachment.html>


More information about the Devel mailing list