[Interest] Preventing Apple Pencil to be grabbed by a PointHandler when a Flickable is on top
Nuno Santos
nuno.santos at imaginando.pt
Mon Oct 27 09:46:30 CET 2025
Shawn,
Thank you so much for your reply. Sorry for taking so long. I was overwhelmed. I’ve created the bug report:
https://bugreports.qt.io/browse/QTBUG-141482
Thank you!
Best regards,
Nuno
> On 20 Oct 2025, at 18:49, Shawn Rutledge <Shawn.Rutledge at qt.io> wrote:
>
> You are welcome to write up a bug about this. And thanks for the complete reproducer already.
>
> I can reproduce it with my active-stylus touchscreen (or a Wacom tablet, no doubt). Regardless of hardware there's a series of QTabletEvents, which are little used in Qt Quick so far (although it's been on my backlog to make better use of them, for many years now!) After each unhandled QTabletEvent, a QMouseEvent is sent. In this case you expect it to behave the same as a series of real mouse events, but it doesn’t for some reason.
>
>> On Oct 20, 2025, at 18:02, Nuno Santos via Interest <interest at qt-project.org> wrote:
>>
>> Hi,
>>
>> I’m having a problem while handling Apple Pencil events.
>>
>> If it is interacting with a Flickable that has a PointHandler below, it gets picked by the PointHandler too. This does not happen with TouchEvents or MouseEvents?
>>
>> What’s the solution for this?
>>
>> Below is a small example that demonstrates the problem.
>>
>> Thanks in advance!
>>
>> Regards,
>>
>> Nuno
>>
>>
>> Window {
>> id: root
>> width: 1024
>> height: 768
>> visible: true
>> color: "lightgrey"
>> //visibility: Window.Hidden
>> //Component.onCompleted: show()
>>
>> Rectangle {
>> width: parent.width * 0.5
>> height: parent.height * 0.5
>> x: parent.width * 0.25
>> y: parent.height * 0.25
>> color: "red"
>> opacity: 0.5
>>
>> PointHandler {
>> onGrabChanged: (transition, pointEvent) => {
>> console.log("Red received", pointEvent, transition)
>> }
>> }
>> }
>>
>> Rectangle {
>> width: parent.width * 0.5
>> height: parent.height * 0.5
>> x: parent.width * 0.4
>> y: parent.height * 0.4
>> color: "yellow"
>> opacity: 0.5
>>
>> ListView {
>> anchors.fill: parent
>> model: ["tes", "ting", "one", "two"]
>> delegate: Text {
>> text: modelData
>> }
>> }
>> }
>> }
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>> <test-apple-pencil.zip>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20251027/f6d5622e/attachment.htm>
More information about the Interest
mailing list