×
Namespaces

Variants
Actions
(Difference between revisions)

如何保持屏幕显示避免屏保和黑屏

From Nokia Developer Wiki
Jump to: navigation, search
flycarl (Talk | contribs)
(Flycarl -)
flycarl (Talk | contribs)
(Flycarl -)
Line 28: Line 28:
 
     }
 
     }
 
</code>
 
</code>
 +
 +
代码示例:[[Media:Screensa.zip]]
  
 
== 相关链接 ==
 
== 相关链接 ==

Revision as of 09:47, 11 August 2011

本文演示如何使程序运行时屏幕常亮,避免屏保和黑屏

Introduction

使用QMl的ScreenSaver Element可以轻松的保持屏幕常亮

import QtMobility.systeminfo 1.1
 
ScreenSaver
{
screenSaverDelayed:true
}

也可使用ScreenSaver自带的setScreenSaverDelayed(bool) 方法在适当的时候启动屏幕常亮,例如

import QtMobility.systeminfo 1.1
import com.meego 1.0
ScreenSaver
{
id:screenSaver
}
Button{
text: "on"
onClicked:screenSaver.setScreenSaverDelayed(true)
}
}

代码示例:Media:Screensa.zip

相关链接


Article Metadata
Tested with
SDK: Qt SDK 1.1.2
Devices(s): N8,N9
Compatibility
Platform(s): Symbian^1 Symbian^3 Meego
Symbian
Article
Keywords: ScreenSaver
Created: flycarl ()
Last edited: flycarl (11 Aug 2011)
174 page views in the last 30 days.
×