MultiPointTouchArea not working?



  • I can't get a simple application of MultiPointTouchArea to work. My touch screen works perfectly, and I am able to create mouse events and touch events with it, so that is not the problem.

    Here is the simple code I am trying to run:

    @
    import QtQuick 2.0

    Rectangle {
    width: 400; height: 400
    MultiPointTouchArea {
    anchors.fill: parent
    enabled: true
    touchPoints: [
    TouchPoint { id: point1 },
    TouchPoint { id: point2 }
    ]
    }

    Rectangle {
        width: 30; height: 30
        color: "green"
        x: point1.x
        y: point1.y
    }
    
    Rectangle {
        width: 30; height: 30
        color: "yellow"
        x: point2.x
        y: point2.y
    }
    

    }
    @

    Is MultiPointTouchArea broken as of a recent Qt patch? Am I missing something obvious?



  • Problem solved: my touch screen was the issue, someone in the office switched it out accidentally.


Log in to reply
 

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