HapticsEffect QML Type
The HapticsEffect element represents a custom haptic feedback effect. More...
Import Statement: | import |
Inherits: |
Properties
- actuator : Actuator
- attackIntensity : double
- attackTime : int
- availableActuators : list<Actuator>
- fadeIntensity : double
- fadeTime : int
- intensity : double
- period : int
Detailed Description
This class closely corresponds to the C++ QFeedbackHapticsEffect class.
import QtFeedback 5.0 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.
Property Documentation
The intensity of the attack (fade-in) part of the haptics effect, from 0.0 to 1.0.
availableActuators : list<Actuator> |
This property holds a list of available actuators. This property is read only.
See also Actuator.
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.