Index: sources/view/VEventSpy.cpp =================================================================== diff -u -ra58f91b077c8131bea3dbde0fc338adb113fc9f3 -r57ea732311e6f4c746974f5a52316f63dec23ca8 --- sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision a58f91b077c8131bea3dbde0fc338adb113fc9f3) +++ sources/view/VEventSpy.cpp (.../VEventSpy.cpp) (revision 57ea732311e6f4c746974f5a52316f63dec23ca8) @@ -150,7 +150,7 @@ void VEventSpy::touchEventSpy(QEvent *vEvent, const QString &vTypeName) { QTouchEvent *touchEvent = static_cast(vEvent); - const QList &points = touchEvent->touchPoints(); + const QList &points = touchEvent->points(); QString logString; int c = points.count(); touchCount ( _touchCount + 1 ); @@ -160,14 +160,14 @@ for (auto point : points) { QString state; switch (point.state()) { - case Qt::TouchPointPressed : state = "P"; break; // The touch point is now pressed. - case Qt::TouchPointMoved : state = "M"; break; // The touch point moved. - case Qt::TouchPointStationary : state = "S"; break; // The touch point did not move. - case Qt::TouchPointReleased : state = "R"; break; // The touch point was released. + case QEventPoint::State::Pressed : state = "P"; break; // The touch point is now pressed. + case QEventPoint::State::Updated : state = "M"; break; // The touch point moved. + case QEventPoint::State::Stationary : state = "S"; break; // The touch point did not move. + case QEventPoint::State::Released : state = "R"; break; // The touch point was released. default : break; } - QPointF pos = point.screenPos(); + QPointF pos = point.globalPosition(); logString += QString(",%1,%2,%3").arg(state).arg(pos.x()).arg(pos.y()); } LOG_DEBUG( vTypeName + logString );