(Difference between revisions)


From Nokia Developer Wiki
Jump to: navigation, search
renlin (Talk | contribs)
(Renlin - - 相关连接)
hamishwillee (Talk | contribs)
m (Text replace - "Category:MeeGo" to "Category:MeeGo Harmattan")
Line 1: Line 1:
[[Category:Qt Mobility]][[Category:MeeGo]][[Category:Lang-Chinese]]
[[Category:Qt Mobility]][[Category:MeeGo Harmattan]][[Category:Lang-Chinese]]
''Delete instructional text in italic''
''Delete instructional text in italic''

Latest revision as of 13:59, 13 June 2012

Delete instructional text in italic

This article explains how to ... Replace the abstract text with a short paragraph (or sentence) describing what the topic covers.

Enter article metadata as described below. Note that this template can be placed anywhere in the article. Do not remove parameters that you do not use

Article Metadata
Created: ()
Last edited: hamishwillee (13 Jun 2012)

[edit] Introduction

本文介绍如果用QML 实现手机的震动效果.

[edit] 实现

用QtFeedBack模块实现手机的震动效果的类为QFeedbackHapticsEffect,其对应的QML 元素为HapticsEffect,本文就用QML HapticsEffect ELement来实现震动效果。

 CONFIG += mobility
MOBILITY += feedback

2,在QML文件中导入feedback 模块

import QtMobility.feedback 1.1


HapticsEffect {
id: rumbleEffect
attackIntensity: 0.0
attackTime: 250
intensity: 1.0
duration: 500
fadeTime: 250
fadeIntensity: 0.0


[edit] 相关连接

Add categories below. Remove Category:Draft when the page is complete or near complete

This page was last modified on 13 June 2012, at 13:59.
93 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.