<?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[Need Help: QTouchEvent Works but Qt Widgets UI Buttons Not Responding on Resistive Touch (TSC2007, Qt 5.12.12)]]></title><description><![CDATA[<p dir="auto">Hi everyone,<br />
I’m currently working on a Qt Widgets application running on an Allwinner <strong>A133</strong> SoC with <strong>Ubuntu 18.04</strong>, <strong>Linux kernel 4.9</strong>, and a <strong>Resistive Touch Panel using the TSC2007 controller.</strong></p>
<p dir="auto">I’m facing an issue where the <strong>touch interface works correctly with raw QTouchEvent handling</strong>, but <strong>UI elements (QPushButton, QCheckBox, QComboBox, etc.) do not receive touch events</strong>.</p>
<p dir="auto">✅ <strong>What works</strong></p>
<ul>
<li>
<p dir="auto">When I test using evtest, touch coordinates are detected.</p>
</li>
<li>
<p dir="auto">Qt QTouchEvent / fingerpaint-style examples work and print the touch coordinates.</p>
</li>
<li>
<p dir="auto">TouchBegin / TouchUpdate / TouchEnd events are fired correctly.</p>
</li>
</ul>
<p dir="auto">❌ What does NOT work</p>
<ul>
<li>
<p dir="auto">Qt Widgets UI controls do not respond to touch.</p>
</li>
<li>
<p dir="auto">Buttons do not click.</p>
</li>
<li>
<p dir="auto">Even though touch is detected at the Qt event level, the UI never triggers a pressed/clicked state.</p>
</li>
</ul>
<p dir="auto">🔍 Possible root cause</p>
<p dir="auto">The TSC2007 resistive touch driver outputs raw 12-bit ADC values (0–4095) for both X and Y axes.</p>
<p dir="auto"><strong>Example from evtest:</strong></p>
<ul>
<li>ABS_X: 3000</li>
<li>ABS_Y: 1400</li>
</ul>
<p dir="auto">But my display resolution is <strong>1024 × 768,</strong> so Qt expects screen-mapped coordinates.</p>
<p dir="auto">This mismatch means:</p>
<ul>
<li>
<p dir="auto">Qt receives coordinates OUTSIDE the widget layouts</p>
</li>
<li>
<p dir="auto">Touch events never map to the correct button positions</p>
</li>
<li>
<p dir="auto">QTouchEvent works because it reads raw values, but QWidget-based button interaction fails</p>
</li>
</ul>
<p dir="auto">⚙️ System Details</p>
<ul>
<li>
<p dir="auto">SoC: Allwinner A133</p>
</li>
<li>
<p dir="auto">OS: Ubuntu 18.04</p>
</li>
<li>
<p dir="auto">Kernel: 4.9</p>
</li>
<li>
<p dir="auto">Qt Version: 5.12.12 (Widgets)</p>
</li>
<li>
<p dir="auto">Touch Controller: TSC2007 (Resistive)</p>
</li>
<li>
<p dir="auto">Application Type: Qt Widgets (not QML)</p>
</li>
</ul>
<p dir="auto">🙏 <strong>What I need help with</strong></p>
<p dir="auto">I’m looking for guidance from anyone who has implemented resistive touch on Qt Widgets using TSC2007 or similar drivers.</p>
<p dir="auto">Any advice, examples, or references from anyone who worked on resistive touch with Qt 5.x would be really appreciated.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.qt.io/topic/164134/need-help-qtouchevent-works-but-qt-widgets-ui-buttons-not-responding-on-resistive-touch-tsc2007-qt-5.12.12</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 23:16:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164134.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jan 2026 05:53:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need Help: QTouchEvent Works but Qt Widgets UI Buttons Not Responding on Resistive Touch (TSC2007, Qt 5.12.12) on Thu, 22 Jan 2026 04:15:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to the Qt Forum,<br />
touch handling has been refactored in Qt 6, and 5.12 has been EOL for a long time.<br />
Please upgrade to a newer Qt Version, preferably &gt;= 6.5.</p>
]]></description><link>https://forum.qt.io/post/835620</link><guid isPermaLink="true">https://forum.qt.io/post/835620</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Thu, 22 Jan 2026 04:15:17 GMT</pubDate></item></channel></rss>