Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] keep unlock mobile phone when my applcation start.
QtWS25 Last Chance

[Solved] keep unlock mobile phone when my applcation start.

Scheduled Pinned Locked Moved QML and Qt Quick
13 Posts 3 Posters 4.5k Views
  • 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.
  • D Offline
    D Offline
    DanSiddiqui
    wrote on last edited by
    #1

    My applcation there is no touch events (E7), my aplication using acceleromter libaray for moving items but after some time my phone locked so how can i disable my mobile to keep unlock when my applcation start.

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #2

      Dan, I have not understand what you need.

      Do you want to unlock che phone from inside your application?
      The phone lock while the application is running ?

      Please be clear.

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DanSiddiqui
        wrote on last edited by
        #3

        @Alicemirror , I am developing a game using Qt(qml) where item are moving through accelerometer api.so user/player didn't touch the device(E7) screen while playing that game so the phone get locked after some time.My game is running but device get locked.

        1 Reply Last reply
        0
        • AlicemirrorA Offline
          AlicemirrorA Offline
          Alicemirror
          wrote on last edited by
          #4

          Wow !!! A blind application. Wonderful :)

          To be serious, now I have clear the question. I tink that you should find - if any, but I think so - a apy the stop the lock screen while the application is running.

          Best I think - but not yet experienced - that as you can "attach" the lock screen block to some events like the network connection or the screen it is also possible stop the screen lock whle an application is running or best until the accelerometer is working.

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

          1 Reply Last reply
          0
          • AlicemirrorA Offline
            AlicemirrorA Offline
            Alicemirror
            wrote on last edited by
            #5

            What you mean as "screen locking" as a matter of fact is the screen saver. The most frequent application that holds the screensaver to run is e.g. the camera appplication. Try to set this in your application.

            @
            // Prevent to screensaver to activate
            m_systemScreenSaver = new QSystemScreenSaver(this);
            m_systemScreenSaver->setScreenSaverInhibit();
            @

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DanSiddiqui
              wrote on last edited by
              #6

              kindly Alicemirror , tell me some other way to handle it.

              1 Reply Last reply
              0
              • AlicemirrorA Offline
                AlicemirrorA Offline
                Alicemirror
                wrote on last edited by
                #7

                Please search in the docmentation as I have done. It is the camera example. And works.

                Enrico Miglino (aka Alicemirror)
                Balearic Dynamics
                Islas Baleares, Ibiza (Spain)
                www.balearicdynamics.com

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DanSiddiqui
                  wrote on last edited by
                  #8

                  Thanks Alicemirror !!! I did as you suugested, it working.Thanks again bro.

                  1 Reply Last reply
                  0
                  • AlicemirrorA Offline
                    AlicemirrorA Offline
                    Alicemirror
                    wrote on last edited by
                    #9

                    I am happy :)

                    As you understand so fast, please remember always to set [Solved] on the title of the post when it is. Maybe useful for the other developers that has the same problem. Simply edit the first post and add it.

                    Cheers.

                    Enrico Miglino (aka Alicemirror)
                    Balearic Dynamics
                    Islas Baleares, Ibiza (Spain)
                    www.balearicdynamics.com

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DanSiddiqui
                      wrote on last edited by
                      #10

                      ok Alicemirror i marked this post as Solved :)

                      1 Reply Last reply
                      0
                      • AlicemirrorA Offline
                        AlicemirrorA Offline
                        Alicemirror
                        wrote on last edited by
                        #11

                        Thanks Dan.

                        Enrico Miglino (aka Alicemirror)
                        Balearic Dynamics
                        Islas Baleares, Ibiza (Spain)
                        www.balearicdynamics.com

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          lgeyer
                          wrote on last edited by
                          #12

                          ... and don't forget to vote for "https://bugreports.qt.nokia.com/browse/QTWEBSITE-242":https://bugreports.qt.nokia.com/browse/QTWEBSITE-242 ;-)

                          1 Reply Last reply
                          0
                          • AlicemirrorA Offline
                            AlicemirrorA Offline
                            Alicemirror
                            wrote on last edited by
                            #13

                            @Lukas: great idea to bug it :)

                            Voted.

                            Enrico Miglino (aka Alicemirror)
                            Balearic Dynamics
                            Islas Baleares, Ibiza (Spain)
                            www.balearicdynamics.com

                            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