Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Help with method to handle the Lock Screen..

Help with method to handle the Lock Screen..

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 862 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stee.bono
    wrote on last edited by
    #1

    hi, I'm Stefano and I would like to know if there is a method to handle the lockscreen.
    I wish that when I unlock the black screen of the mobile phone (Nokia N9), opens in a Qt application (which I created), but I do not know code to handle the lock screen.

    Thanks to all :)

    Edit:
    I solved in this way:

    I have included this in the main.qml file:
    [code]
    import QtMobility.sensors 1.2
    import QtMobility.location 1.1
    import QtMobility.systeminfo 1.2
    [/code]

    I have add this code on main.qml file:

    [code]
    DeviceInfo {
    monitorLockStatusChanges: true
    onLockStatusChanged: {
    if (!isDeviceLocked) {
    //console.log("show")
    QmlApplicationViewer.show();
    }
    }
    [/code]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved