[Interest] QML TouchPoint startX/startY property

Nuno Santos nunosantos at imaginando.pt
Thu Nov 13 13:26:59 CET 2014


Hi,

I have just found the startX and startY properties of the TouchPoint in QML. 

http://qt-project.org/doc/qt-5/qml-qtquick-touchpoint.html#startX-prop

Documentation says:

These properties hold the starting position of the touch point.

The problem is that when I write those values to the console they always come as zero.


onTouchUpdated: {
                for (var i=0;i<touchPoints.length; i++)
                {
                    var touch = touchPoints[i];

                    console.log("x: " + touch.x + " start x: " + touch.startX + " y: " + touch.y + " start y: " + touch.startY)
                }
            }

qml: x: 456.99609375 start x: 0 y: 169.99609375 start y: 0

Am I missing something or is this a bug?

Regards,

Nuno Santos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141113/51d35d78/attachment.html>


More information about the Interest mailing list