QtMobility Reference Documentation

QML HapticsEffect Element

The HapticsEffect element represents a custom haptic feedback effect. More...

Inherits FeedbackEffect

Properties

Detailed Description

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
     running: myBoat.keelDepth < 0; // play a rumble when we crash the boat
 }

See also Actuator and QFeedbackHapticsEffect.

Property Documentation

read-onlyactuator : Actuator

The actuator that is used for playing this effect.

See also Actuator.


attackIntensity : double

The intensity of the attack (fade-in) part of the haptics effect, from 0.0 to 1.0.


read-onlyattackTime : int

The duration of the attack (fade-in) part of the haptics effect.


read-onlyavailableActuators : list<Actuator>

This property holds a list of available actuators. This property is read only.

See also Actuator.


read-onlyfadeIntensity : double

The intensity of the fade-out part of the haptics effect, from 0.0 to 1.0.


read-onlyfadeTime : int

The duration of the fade-out part of the haptics effect.


read-onlyintensity : double

The intensity of the main part of the haptics effect, from 0.0 to 1.0.


read-onlyperiod : 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.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();