[SailfishDevel] QML DeviceInfo
Lorn Potter
lorn.potter at jolla.com
Tue Apr 29 03:43:40 UTC 2014
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
More information about the Devel
mailing list