[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?
-
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();
}
@ -
[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.
-
[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!!