How to use QtMobility to enable vibration in QML
This article explains how to use QtMobility to enable vibration in QML.
As the previous article : http://www.developer.nokia.com/Community/Wiki/How_to_use_QVibra_to_enable_vibration_in_QML . This article will show another way to implement vibration using QML
Step by step
In the project file, put these settings first:
CONFIG += mobility
MOBILITY += feedback
Next step, I'll put some of these code below to main.qml file
import QtMobility.feedback 1.1
duration: 250 // set up the duration here, in millisecond
Ok, now wherever you want to start the vibration, just easily call the rumbleEffect
Sample source code
You can download the sample source code of this article from below links.