Taps are for taps, that a thing was tapped. Not where. Generally if you want points, you get the press/down/move event and save the coordinate there, then on the tap event, check what was saved. Sometimes . Maybe PointHandler is what you want? I often would like the x,y on an onClicked() handler, but I've never needed it.  Though using those TapHandlers is not anything I've worked with for a while.
 
 
Sent: Monday, May 06, 2019 at 10:30 AM
From: "Tomasz Olszak" <olszak.tom...@gmail.com>
To: "Qt Interest" <interest@qt-project.org>
Subject: [Interest] TapHandler tapped coordinates not accessible
Hi,
 
I use Qt 5.12.3 and I'm trying to use TapHandler. For some reason though in onTapped handler point is already reset.
I see that point is valid when reading it from onPressedChanged. Is it a bug? Seems like docs miss explicit example of reading point coordinate.
 
This is snippet I use to test.
 
Any ideas?
 
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to