Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    MultiPointTouchArea and PinchArea not working in latest Beta2

    Qt.io webservices
    1
    2
    1629
    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.
    • K
      kitizz last edited by

      Multi touch events seem to be no longer working in the Beta2 in QML. At least on Mac OS X 10.7.5. Running the same code against the Beta1 works as expected.

      After a small amount of debugging, I have a feeling that not even the C++ for MultiPointTouchArea is receiving the events.

      Also, not sure if it is related, but I receive these warning when I built the project (a brand new QtQuick 2 Application):

      ld: warning: directory not found for option '-F/Users/kit/Qt5.0.0beta2/5.0.0-beta2/clang_64/qtdeclarative/lib'
      ld: warning: directory not found for option '-F/Users/kit/Qt5.0.0beta2/5.0.0-beta2/clang_64/qtbase/lib'
      ld: warning: directory not found for option '-F/Users/kit/Qt5.0.0beta2/5.0.0-beta2/clang_64/qtjsbackend/lib'

      The code I tested with:
      @
      import QtQuick 2.0

      Rectangle {
      width: 360
      height: 360

      MultiPointTouchArea {
          anchors.fill: parent
          maximumTouchPoints: 3
      
          touchPoints: [
              TouchPoint { id: p1 },
              TouchPoint { id: p2 },
              TouchPoint { id: p3 }
          ]
      
          Rectangle {
              width: 30; height: 30
              color: "red"
              opacity: p1.pressed ? 1 : 0.3
              x: p1.x; y: p1.y
          }
      
          Rectangle {
              width: 30; height: 30
              color: "blue"
              opacity: p2.pressed ? 1 : 0.3
              x: p2.x; y: p2.y
          }
      
          Rectangle {
              width: 30; height: 30
              color: "green"
              opacity: p3.pressed ? 1 : 0.3
              x: p3.x; y: p3.y
          }
      }
      

      }
      @

      1 Reply Last reply Reply Quote 0
      • K
        kitizz last edited by

        Update: This is still a problem in RC1.

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