[SOLVED]QFeedbackHapticsEffect error: No such file or directory
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?
6 replies
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();
- }
You must log in to post a reply. Not a member yet? Register here!


