Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. MultiPointTouchArea and PinchArea not working in latest Beta2
Forum Updated to NodeBB v4.3 + New Features

MultiPointTouchArea and PinchArea not working in latest Beta2

Scheduled Pinned Locked Moved Qt.io webservices
2 Posts 1 Posters 1.9k Views 1 Watching
  • 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 Offline
    K Offline
    kitizz
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      kitizz
      wrote on last edited by
      #2

      Update: This is still a problem in RC1.

      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