Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED]QFeedbackHapticsEffect error: No such file or directory
QtWS25 Last Chance

[SOLVED]QFeedbackHapticsEffect error: No such file or directory

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vetryaspa
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Are you sure that QFeedbackHapticsEffect is a Qt routine?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vetryaspa
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vetryaspa
          wrote on last edited by
          #4

          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();
          }
          @

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            [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.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vetryaspa
              wrote on last edited by
              #6

              [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!!

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vetryaspa
                wrote on last edited by
                #7

                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 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved