QFeedbackHapticsEffect Class Reference
The QFeedbackHapticsEffect class allows to play a haptics feedback on an actuator. More...
#include <QFeedbackHapticsEffect>
Inherits QFeedbackEffect.
Properties
|
|
- 2 properties inherited from QFeedbackEffect
Public Functions
QFeedbackHapticsEffect ( QObject * parent = 0 ) | |
~QFeedbackHapticsEffect () | |
QFeedbackActuator | actuator () const |
qreal | attackIntensity () const |
int | attackTime () const |
qreal | fadeIntensity () const |
int | fadeTime () const |
qreal | intensity () const |
int | period () const |
void | setActuator ( const QFeedbackActuator & actuator ) |
void | setAttackIntensity ( qreal intensity ) |
void | setAttackTime ( int msecs ) |
void | setDuration ( int msecs ) |
void | setFadeIntensity ( qreal intensity ) |
void | setFadeTime ( int msecs ) |
void | setIntensity ( qreal intensity ) |
void | setPeriod ( int msecs ) |
Reimplemented Public Functions
virtual int | duration () const |
virtual State | state () const |
- 2 public functions inherited from QFeedbackEffect
Reimplemented Protected Functions
virtual void | setState ( State ) |
- 1 protected function inherited from QFeedbackEffect
Additional Inherited Members
- 3 public slots inherited from QFeedbackEffect
- 1 signal inherited from QFeedbackEffect
- 2 static public members inherited from QFeedbackEffect
- 1 protected function inherited from QFeedbackEffect
Detailed Description
The QFeedbackHapticsEffect class allows to play a haptics feedback on an actuator.
It is possible to set the duration, intensity, envelope and period of the effect. It is a subclass of QFeedbackEffect (subclass of QObject), which makes it inherit its properties: duration and state. It can also be started, stopped or paused.
You can set the duration to INFINITE. It is then up to the program to stop the effect.
A feedback effect always works on a feedback actuator.
it can report errors through the error signal.