Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QML and Gestures

    QML and Qt Quick
    4
    9
    6196
    Loading More Posts
    • 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.
    • 2
      2beers last edited by

      hi I want to build an app using Gestures: "http://doc.qt.nokia.com/4.7/qml-gesturearea.html":http://doc.qt.nokia.com/4.7/qml-gesturearea.html , but it seems that the functions are not included in qt 4.7 . are they gone be included in 4.7.x or should I download and use them externally?

      [edit: fixed link / chetankjain]

      1 Reply Last reply Reply Quote 0
      • M
        mbrasser last edited by

        Hi,

        They should be included in 4.7. Can you be more specific about what is going wrong? Looking at the docs, the import statement looks wrong to me -- I think it should be "import Qt.labs.gestures 1.0" (rather than 0.1)

        Regards,
        Michael

        1 Reply Last reply Reply Quote 0
        • 2
          2beers last edited by

          hi mbrasser. thanks. yes that was the problem 1.0 instead of 0.1

          but now I have a different problem: Qt Creator doesn't recognize the signals such as onTap, onSwipe, etc..

          I don't receive any error but nothing happens. I also tried this "example":http://doc.qt.nokia.com/4.7/declarative-touchinteraction-gestures-experimental-gestures-qml.html

          [edit: fixed link / chetankjain]

          1 Reply Last reply Reply Quote 0
          • M
            mbrasser last edited by

            What platform are you using? As a first step, I'd suggest trying some of Qt's non-QML touch/gesture examples, and see whether or not those work for you.

            1 Reply Last reply Reply Quote 0
            • 2
              2beers last edited by

              [quote author="mbrasser" date="1285204678"]What platform are you using? As a first step, I'd suggest trying some of Qt's non-QML touch/gesture examples, and see whether or not those work for you.[/quote]

              I'm trying to run it in simulator. I can't run the example on simulator using the mouse?

              I have qt 4.7 and qt creator 2.01 . Like I said the creator doesn't recognize onTap,onSwipe signals, it shows me with a red underline.

              All others QML examples are working. at least the ones I tried. :)

              1 Reply Last reply Reply Quote 0
              • M
                mbrasser last edited by

                Hi,

                The red underline is due to an incomplete type specification in the file "qml-builtin-types.xml" used by Creator to provide meta information on the QML types.

                Looking at "this suggestion":http://bugreports.qt.nokia.com/browse/QTSIM-77, I'd say gestures aren't yet supported in the simulator.

                Regards,
                Michael

                1 Reply Last reply Reply Quote 0
                • 2
                  2beers last edited by

                  thanks mbrasser

                  1 Reply Last reply Reply Quote 0
                  • T
                    truongpv last edited by

                    I also like. I tried the N8 but it only recognize ONTAP, onTapAndHold

                    1 Reply Last reply Reply Quote 0
                    • N
                      nesaver last edited by

                      N950 only recognize Ontap, onTapAndHold

                      How the way i can get onPan event ?? Pls help me.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post