<?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[Change position of a ScrollView]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a kind of pop up window with a scroll view that I change the visibility of to hide or shows it. I want to change the position of the scroll when I change the visibity. The thing is that I don't know how to set the scrollview position automatically.</p>
<p dir="auto">Can anybody help me with this ?</p>
<p dir="auto">Thank you in advance</p>
]]></description><link>https://forum.qt.io/topic/94073/change-position-of-a-scrollview</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 20:14:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/94073.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Aug 2018 14:24:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change position of a ScrollView on Tue, 26 Feb 2019 11:14:43 GMT]]></title><description><![CDATA[<p dir="auto">I tried to find a solution for Controls 2 and found only this thread, so I reply here after finding the solution by the hard way myself.</p>
<p dir="auto">In Controls 2 ScrollView has run time contentItem which is Flickable (undocumented feature). This Flickable has contentY and contentX properties, see the official docs how to use them. For example, I made a function in a ScrollView which has TextArea with id 'edit':</p>
<pre><code>function scrollToBottom() {
    contentItem.contentY = edit.height - contentItem.height
}
</code></pre>
<p dir="auto">This seems to work.</p>
]]></description><link>https://forum.qt.io/post/514077</link><guid isPermaLink="true">https://forum.qt.io/post/514077</guid><dc:creator><![CDATA[Eeli K]]></dc:creator><pubDate>Tue, 26 Feb 2019 11:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to Change position of a ScrollView on Wed, 29 Aug 2018 18:29:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
That solution works only for Qt Quick controls 1. Is there any solution for Quick Controls 2?</p>
]]></description><link>https://forum.qt.io/post/478777</link><guid isPermaLink="true">https://forum.qt.io/post/478777</guid><dc:creator><![CDATA[dokif]]></dc:creator><pubDate>Wed, 29 Aug 2018 18:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to Change position of a ScrollView on Mon, 27 Aug 2018 15:06:08 GMT]]></title><description><![CDATA[<p dir="auto">@LeLev<br />
Thank you it is what I needed !</p>
]]></description><link>https://forum.qt.io/post/478398</link><guid isPermaLink="true">https://forum.qt.io/post/478398</guid><dc:creator><![CDATA[DavidM29]]></dc:creator><pubDate>Mon, 27 Aug 2018 15:06:08 GMT</pubDate></item><item><title><![CDATA[Reply to Change position of a ScrollView on Mon, 27 Aug 2018 14:48:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/davidm29">@<bdi>DavidM29</bdi></a> Hi,<br />
I think you are looking for properties  : flickableItem.contentY and flickableItem.contentX</p>
<p dir="auto">see also this page : <a href="https://stackoverflow.com/questions/30359262/how-to-scroll-qml-scrollview-to-center" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/30359262/how-to-scroll-qml-scrollview-to-center</a></p>
]]></description><link>https://forum.qt.io/post/478397</link><guid isPermaLink="true">https://forum.qt.io/post/478397</guid><dc:creator><![CDATA[ODБOï]]></dc:creator><pubDate>Mon, 27 Aug 2018 14:48:14 GMT</pubDate></item></channel></rss>