[SOLVED]QFeedbackHapticsEffect error: No such file or directory
-
wrote on 8 Mar 2012, 09:00 last edited by
hi all,
i have to try to activate the vibration at button click but qhen i compile compare the error: " error: QFeedbackHapticsEffect: No such file or directory" in the simulator:
@void FormDettaglioRistorante::backButton(){
QFeedbackHapticsEffect rumble;
rumble.setIntensity(1.0);
rumble.setDuration(100);
rumble.start();
}@this is the metod to activate the vibration
and in the device I have another problem like this: "error: Recipe linkandpostlink failed with exit code 1."
how i can solve?
-
wrote on 8 Mar 2012, 09:10 last edited by
Are you sure that QFeedbackHapticsEffect is a Qt routine?
-
wrote on 8 Mar 2012, 09:15 last edited by
I never have work with hapatic effect what do you mean with Qt routine?
Then i have another quest to activete the Hapatic effect, the button that activate this it must be an HapaticButton?
-
wrote on 8 Mar 2012, 09:29 last edited by
I have solved the problem of dependency writing in the .pro file the follow line: "@LIBS += -lQtFeedback@"
but then the device not Vibrate. why????? i'm sure that the method il call because i have insert a QDebug ant it was call.
@void FormDettaglioRistorante::backButton(){
qDebug()<<"backButton()";
QFeedbackHapticsEffect rumble;
rumble.setIntensity(1.0);
rumble.setDuration(100);
rumble.start();
}
@ -
wrote on 8 Mar 2012, 09:38 last edited by
[quote author="Vetryaspa" date="1331198129"]I never have work with hapatic effect what do you mean with Qt routine?
Then i have another quest to activete the Hapatic effect, the button that activate this it must be an HapaticButton?[/quote]
I was just wondering, it did not show up in the web docs. But you have found the required change in .pro.
-
wrote on 8 Mar 2012, 09:43 last edited by
[quote author="koahnig" date="1331199494"]
I was just wondering, it did not show up in the web docs. But you have found the required change in .pro.
[/quote]
I not have fount the requied change in the DOC but in an example in the Qt creator sample code.
but the question now is why the event not start??? the device not vibrate!!
-
wrote on 8 Mar 2012, 09:45 last edited by
I have found the way:
@ QFeedbackHapticsEffect *rumble = new QFeedbackHapticsEffect(this);
rumble->setIntensity(1.0);
rumble->setDuration(100);
rumble->start();@i have set the pointer ant i have pass the parent. Now run!!
1/7