The HapticsEffect element represents a custom haptic feedback effect. More...
Inherits FeedbackEffect
This element was introduced in Mobility 1.1.
This element is part of the QtMobility.feedback 1.1 module.
This class closely corresponds to the C++ QFeedbackHapticsEffect class.
HapticsEffect { id: rumbleEffect attackIntensity: 0.0 attackTime: 250 intensity: 1.0 duration: 100 fadeTime: 250 fadeIntensity: 0.0 } MouseArea { onClicked: { rumbleEffect.start(); // plays a rumble effect }
See also Actuator and QFeedbackHapticsEffect.
actuator : Actuator |
The actuator that is used for playing this effect.
This property group was introduced in Mobility 1.1.
See also Actuator.
The intensity of the attack (fade-in) part of the haptics effect, from 0.0 to 1.0.
This property group was introduced in Mobility 1.1.
attackTime : int |
The duration of the attack (fade-in) part of the haptics effect.
This property group was introduced in Mobility 1.1.
This property holds a list of available actuators. This property is read only.
This property group was introduced in Mobility 1.1.
See also Actuator.
The intensity of the fade-out part of the haptics effect, from 0.0 to 1.0.
This property group was introduced in Mobility 1.1.
fadeTime : int |
The duration of the fade-out part of the haptics effect.
This property group was introduced in Mobility 1.1.
The intensity of the main part of the haptics effect, from 0.0 to 1.0.
This property group was introduced in Mobility 1.1.
period : int |
The period of the haptics effect. If the period is zero, the effect will not repeat. If it is non-zero, the effect will repeat every period milliseconds.
This property group was introduced in Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.