<?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[Qt 6.10.3 Android: layout changes defeat drags, text input]]></title><description><![CDATA[<p dir="auto">Many Android developers have reported that changing the state of Qt Quick controls can cause the Android OS to "rebuild" the corresponding views in its layout.  That seems to be causing multiple problems in my code with GUI actions like drags and continuous typing that result in automatic changes to other Qt Quick controls.</p>
<p dir="auto">For example:</p>
<ul>
<li>An instant search based on what has been typed in a <code>TextField</code> (without waiting to press Enter) causes the text field to lose focus and the soft keyboard to close, because the change in the geometry of controls showing search results causes a layout rebuild; it is as if the underlying text view has been deleted and recreated.</li>
<li>A <code>ToolTip</code> that is programmed to appear when tapping and holding a button closes immediately or does not appear at all, as the layout rebuild appears to "untap" the button.</li>
<li>A <code>RangeSlider</code> whose properties are bound by a numeric readout <code>Label</code> at each end can only be dragged one step at a time, because changing a label's text causes a layout rebuild and kills the drag.</li>
</ul>
<p dir="auto">Our code is too complex to share here, but I'll point out that all of this code works perfectly on iOS, where the association between a Qt Quick control and the OS's underlying view is permanent across layout actions.</p>
<p dir="auto">Has anyone faced this problem, and managed to overcome it?  The last thing I want is to have to throw in a time delay so that the GUI action can be continuous.</p>
<p dir="auto">Environment: Android 16, Qt 6.10.3</p>
]]></description><link>https://forum.qt.io/topic/164702/qt-6.10.3-android-layout-changes-defeat-drags-text-input</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 16:56:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164702.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 May 2026 01:45:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Wed, 27 May 2026 00:59:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mskyyyf-wiieyy">@<bdi>mskyyyf-wiieyy</bdi></a><br />
I'm not clear on what the <code>MouseArea</code> accomplishes in that solution, but I think you're telling me that any interactive control like a slider or a live-search text field should be parented to <code>Overlay.overlay</code> and thus be immune to all the effects of the layout passes that result from those interactions.  Correct?</p>
]]></description><link>https://forum.qt.io/post/838388</link><guid isPermaLink="true">https://forum.qt.io/post/838388</guid><dc:creator><![CDATA[barbicels]]></dc:creator><pubDate>Wed, 27 May 2026 00:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Mon, 25 May 2026 15:54:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barbicels">@<bdi>barbicels</bdi></a> yep, that's ok. 6.11 needs JDK 21</p>
]]></description><link>https://forum.qt.io/post/838373</link><guid isPermaLink="true">https://forum.qt.io/post/838373</guid><dc:creator><![CDATA[ekkescorner]]></dc:creator><pubDate>Mon, 25 May 2026 15:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Mon, 25 May 2026 15:52:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mskyyyf-wiieyy">@<bdi>mskyyyf-wiieyy</bdi></a></p>
<p dir="auto">I'm familiar with the practice of using the <code>Overlay.overlay</code> attached property to parent an item that floats above the window (with geometry in global coordinates).  In our case, the stuff that needs re-layout is part of the same scrollable Qt layout as the controls whose changes cause that to happen — all pretty normal mobile-app behavior — so I don't know how I would make that work.</p>
<p dir="auto">Can you point me to a minimal working example of this?  That would be fantastic.</p>
]]></description><link>https://forum.qt.io/post/838372</link><guid isPermaLink="true">https://forum.qt.io/post/838372</guid><dc:creator><![CDATA[barbicels]]></dc:creator><pubDate>Mon, 25 May 2026 15:52:14 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Mon, 25 May 2026 15:19:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekkescorner">@<bdi>ekkescorner</bdi></a> NDK is 27.2.12479018 and JDK is 17.0.2, acceptable according to Qt Creator.</p>
]]></description><link>https://forum.qt.io/post/838371</link><guid isPermaLink="true">https://forum.qt.io/post/838371</guid><dc:creator><![CDATA[barbicels]]></dc:creator><pubDate>Mon, 25 May 2026 15:19:16 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Mon, 25 May 2026 14:26:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barbicels">@<bdi>barbicels</bdi></a> what's your JDK and NDK and have you tried 6.11.1 ?</p>
]]></description><link>https://forum.qt.io/post/838370</link><guid isPermaLink="true">https://forum.qt.io/post/838370</guid><dc:creator><![CDATA[ekkescorner]]></dc:creator><pubDate>Mon, 25 May 2026 14:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 6.10.3 Android: layout changes defeat drags, text input on Mon, 25 May 2026 11:09:15 GMT]]></title><description><![CDATA[<p dir="auto">Ugh, I’ve fought this exact same issue on Android Qt! The view rebuilds are brutal, especially with anything interactive like sliders or live search.<br />
A trick that helped me: wrap the dynamic parts of your UI in a MouseArea and use QtQuick.Controls.Overlay for elements that don’t need to affect the layout directly. It prevents the geometry changes from triggering full layout passes mid-interaction.<br />
Also, double-check that you’re not binding properties that trigger implicitWidth/implicitHeight updates unnecessarily — those are usually the culprits.</p>
]]></description><link>https://forum.qt.io/post/838365</link><guid isPermaLink="true">https://forum.qt.io/post/838365</guid><dc:creator><![CDATA[mskyyyf wiieyy]]></dc:creator><pubDate>Mon, 25 May 2026 11:09:15 GMT</pubDate></item></channel></rss>