diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 8af4a7110a..de1b8d725f 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2851,7 +2851,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To for (auto &tempPt : e->points) { // update state auto epd = devPriv->pointById(tempPt.id()); - auto &mut = QMutableEventPoint::from(const_cast(epd->eventPoint)); + auto &mut = QMutableEventPoint::from(epd->eventPoint); epd->eventPoint.setAccepted(false); switch (tempPt.state()) { case QEventPoint::State::Pressed: