Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Keep screen on in an app – Android

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15962

    Felgo User

    Hi,

    How to keep the screen on in an app, when I create a game project the screen stays awake automatically, but when I create an app, if there is no touch input the screen turns off.

    #15963

    Günther
    Felgo Team

    Hi Tahar!

    You can set the NativeUtils::displaySleepEnabled property to false to keep the screen awake. E.g.:

    App {
    
      Component.onCompleted: {
        nativeUtils.displaySleepEnabled = false
      }
    
    }

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded