Qt Mobility Reference Documentation

QML FeedbackEffect Element

[FeedbackEffect instantiates the C++ class QFeedbackEffect]

The FeedbackEffect element is the base class for all feedback effects. More...

Inherited by FileEffect and HapticsEffect.

Properties

Signals

Methods

Detailed Description

This element is part of the QtMobility.feedback 1.1 module.

You can't create one of these elements directly, but several other elements inherit the methods and properties of these elements.

See also FileEffect, ThemeEffect, HapticsEffect, and QFeedbackEffect.


Property Documentation

duration : int

The duration of the effect, in milliseconds. This is 0 for effects of unknown duration, or Feedback.Infinite for effects that don't stop.


state : FeedbackEffect::State

This is the current state of the effect. It is one of:

  • Feedback.Stopped - the effect is not playing
  • Feedback.Loading - the effect is being loaded
  • Feedback.Running - the effect is playing
  • Feedback.Paused - the effect was being played, but is now paused.

Signal Documentation

FeedbackEffect::error ( Feedback::ErrorType )

This signal is emitted when an error occurs during playback of an effect.

The error is one of the following values:

  • Feedback.UnknownError - An unknown error occurred
  • Feedback.DeviceBusy - The device resource is already being used.

See also QFeedbackEffect::ErrorType.


Method Documentation

FeedbackEffect::pause ()

Pause playback of this effect. Not all devices or effects can pause feedback playback.


FeedbackEffect::start ()

Start playback of this effect.


FeedbackEffect::stop ()

Stops playback of this effect.


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.