I want to start repeating vibration on a Nokia 5800. The docs say I should be using QFeedbackHapticsEffect::setPeriod()
, and I try with this code:
QFeedbackHapticsEffect *effect = new QFeedbackHapticsEffect(this);
effect->setDuration(1000);
effect->setPeriod(500);
effect->setIntensity(1);
effect->start();
However the phone I'm testing on (Nokia 5800) still vibrates only once and stops, even though I've tested that periodic vibration is supported on the phone:
qDebug() << effect->actuator()->isCapabilitySupported(QFeedbackActuator::Period);
Is there something wrong with the way I'm initializing the QFeedbackHapticsEffect
? Any steps that I might have missed?