<?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[Separating x&#x2F;y components of pinch gesture]]></title><description><![CDATA[<p dir="auto">Hi guys.<br />
Making a mobile application where the user will be interacting with a graph (zooming, scaling).<br />
I thought the most intuitive way to do this would be through a QPinchGesture, but have found that it does not allow the x/y components to be considered separately natively.</p>
<p dir="auto">Does anyone know a class that can handle them separately, or alternatively is there a simple way to get around this?<br />
Could I capture the x/y positions from the individual QGestureEvents (or QEvents) and use that to determine whether the user is trying to scale in x or y?</p>
<p dir="auto">Thanks,<br />
~Chris</p>
]]></description><link>https://forum.qt.io/topic/80162/separating-x-y-components-of-pinch-gesture</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 02:13:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/80162.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jun 2017 09:56:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Separating x&#x2F;y components of pinch gesture on Thu, 22 Jun 2017 02:21:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> said in <a href="/post/398871">Separating x/y components of pinch gesture</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/espocjo">@<bdi>espocjo</bdi></a> Why do you need it? Do you want to resize only one axis? This would change the aspect ratio.</p>
</blockquote>
<p dir="auto">It's for plotting.  You want to be able to change the aspect ratio.  :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eligijus">@<bdi>Eligijus</bdi></a> said in <a href="/post/398973">Separating x/y components of pinch gesture</a>:</p>
<blockquote>
<p dir="auto">const QList&lt; QTouchEvent::TouchPoint &gt; &amp;QTouchEvent::touchPoints() const<br />
<a href="http://doc.qt.io/qt-5/qtouchevent.html#touchPoints" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtouchevent.html#touchPoints</a></p>
<p dir="auto">You get a list of touch points(fingers touching the screen) and you can check touchpoint x/y by calling pos() method.</p>
</blockquote>
<p dir="auto">Thanks.  I'll look into that this afternoon.</p>
]]></description><link>https://forum.qt.io/post/400984</link><guid isPermaLink="true">https://forum.qt.io/post/400984</guid><dc:creator><![CDATA[espocjo]]></dc:creator><pubDate>Thu, 22 Jun 2017 02:21:53 GMT</pubDate></item><item><title><![CDATA[Reply to Separating x&#x2F;y components of pinch gesture on Mon, 12 Jun 2017 11:26:34 GMT]]></title><description><![CDATA[<p dir="auto">const QList&lt; QTouchEvent::TouchPoint &gt; &amp;QTouchEvent::touchPoints() const<br />
<a href="http://doc.qt.io/qt-5/qtouchevent.html#touchPoints" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtouchevent.html#touchPoints</a></p>
<p dir="auto">You get a list of touch points(fingers touching the screen) and you can check touchpoint x/y by calling pos() method.</p>
]]></description><link>https://forum.qt.io/post/398973</link><guid isPermaLink="true">https://forum.qt.io/post/398973</guid><dc:creator><![CDATA[Eligijus]]></dc:creator><pubDate>Mon, 12 Jun 2017 11:26:34 GMT</pubDate></item><item><title><![CDATA[Reply to Separating x&#x2F;y components of pinch gesture on Mon, 12 Jun 2017 05:35:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/espocjo">@<bdi>espocjo</bdi></a> Why do you need it? Do you want to resize only one axis? This would change the aspect ratio.</p>
]]></description><link>https://forum.qt.io/post/398871</link><guid isPermaLink="true">https://forum.qt.io/post/398871</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 12 Jun 2017 05:35:50 GMT</pubDate></item></channel></rss>