MultiPointTouchArea and PinchArea not working in latest Beta2



  • 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
        }
    }
    

    }
    @



  • Update: This is still a problem in RC1.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.