Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 使用Qt5.1 RC1开发Android应用程式之休眠状态设定问题
Forum Updated to NodeBB v4.3 + New Features

使用Qt5.1 RC1开发Android应用程式之休眠状态设定问题

Scheduled Pinned Locked Moved Chinese
1 Posts 1 Posters 2.2k 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.
  • P Offline
    P Offline
    peterlin82
    wrote on last edited by
    #1

    小弟今天使用Qt5.1 RC1开发Android应用程式。
    觉得功能相当完整。目前并没遇到Qt本身有任何问题。
    倒是Android部份,我想让应用程式不要进入休眠状态。
    参考网路得知要用
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

    但这段程式码无法加到Qt程式里面。
    故想请教前辈要让应用程式不要进入休眠状态该怎么做?
    万分感谢。

    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