<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QGesture and QDeclarativeItem]]></title><description><![CDATA[<p dir="auto">Can anyone tell me if I need to do anything extra/undocumented to get a QDeclarativeItem to grab gesture events?</p>
<p dir="auto">I am using the code described in the documentation (<a href="http://goo.gl/4Ym1R" target="_blank" rel="noopener noreferrer nofollow ugc">http://goo.gl/4Ym1R</a>) but I just can't get any gesture events to come into the event() function.</p>
<p dir="auto">When I ask Google for help I just get examples of people trying to do this outside QML with a standard C++ QGraphicView based app.</p>
<p dir="auto">I wonder if QML is somehow blocking gestures?</p>
<p dir="auto">Thanks,<br />
Paul Drummond</p>
]]></description><link>https://forum.qt.io/topic/6660/qgesture-and-qdeclarativeitem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 14:59:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/6660.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jun 2011 08:25:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QGesture and QDeclarativeItem on Sat, 17 Dec 2011 14:25:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I have exactly the same problem: my QDeclarativeItem subclass doesn't receive any QGesture events.<br />
Did you manage to solve your issue?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcrochik">@<bdi>fcrochik</bdi></a>: a QDeclarativeItem is a QGraphicsObject subclass, so in theory grabGesture() should work there as well. Why exacly did you call those methods from the child widget and not from the QDeclarativeItem itself?</p>
]]></description><link>https://forum.qt.io/post/100520</link><guid isPermaLink="true">https://forum.qt.io/post/100520</guid><dc:creator><![CDATA[mardy]]></dc:creator><pubDate>Sat, 17 Dec 2011 14:25:19 GMT</pubDate></item><item><title><![CDATA[Reply to QGesture and QDeclarativeItem on Sat, 05 Nov 2011 21:50:54 GMT]]></title><description><![CDATA[<p dir="auto">I have it working on my application (works on Symbian and Harmattan):</p>
<p dir="auto">I am not sure if I tried grabGesture on the QDeclarativeItem. That is how I have it working:</p>
<p dir="auto">My QDeclarativeItem has a QGraphicsWidget child with:</p>
<p dir="auto">@<br />
setAttribute(Qt::WA_AcceptTouchEvents);<br />
grabGesture(Qt::PinchGesture);<br />
@</p>
<p dir="auto">and I installed an event filter on it so could process the events on my declarative item.</p>
]]></description><link>https://forum.qt.io/post/100345</link><guid isPermaLink="true">https://forum.qt.io/post/100345</guid><dc:creator><![CDATA[fcrochik]]></dc:creator><pubDate>Sat, 05 Nov 2011 21:50:54 GMT</pubDate></item><item><title><![CDATA[Reply to QGesture and QDeclarativeItem on Thu, 03 Nov 2011 12:13:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am in the same situation. With simulator gestures are recongnized, but on the device (Nokia C7) aren't.<br />
Have you managed this ?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.qt.io/post/100340</link><guid isPermaLink="true">https://forum.qt.io/post/100340</guid><dc:creator><![CDATA[deimos]]></dc:creator><pubDate>Thu, 03 Nov 2011 12:13:58 GMT</pubDate></item></channel></rss>