<?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[Centering ScrollView in the middle of the screen]]></title><description><![CDATA[<p dir="auto">Hello fello Qt Devs,</p>
<p dir="auto">how does one center ScrollView in the middle of the screen?</p>
<p dir="auto">I have it as an element of page and tried achors.horizontalCenter: parent.horizontalCenter<br />
anchors.centerIn:<br />
x:<br />
made the text be inside of Column{} and set ScrollViews height to that columns height and even tried to center the Text{} elements of the ScrollView to center of page by its Id, but nothing works. It is either left-aligned or breaks.</p>
<p dir="auto">Should I remove the Page element since it might interfere,k but how then i put buttons that stay in the same location when one scrolls, and I also havent seen ScrollView centered even when its standalone, in tutorial version it was also left-aligned.</p>
<p dir="auto">Cheers, DSU</p>
]]></description><link>https://forum.qt.io/topic/165095/centering-scrollview-in-the-middle-of-the-screen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 18:56:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165095.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Sep 2026 22:31:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Centering ScrollView in the middle of the screen on Thu, 17 Sep 2026 06:49:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sierdzio">@<bdi>sierdzio</bdi></a> There also seems to be some interaction with wrap mode of the text, also depends if one uses JS script: <code>my text string</code>, or not. Anyways, i ended up using ColumnLayout with a ListView that fills it and that ListView has delegate Item that has column embedded in it, which is anchors.horizontalCenter: parent.horizontalCenter . I tried to have just column as delegate, but that also wouldnt work, so i wrapped it in an item.<br />
Anyways it is not that important atm, i might return here once I have time to experiment more.</p>
]]></description><link>https://forum.qt.io/post/840174</link><guid isPermaLink="true">https://forum.qt.io/post/840174</guid><dc:creator><![CDATA[DSpUz]]></dc:creator><pubDate>Thu, 17 Sep 2026 06:49:09 GMT</pubDate></item><item><title><![CDATA[Reply to Centering ScrollView in the middle of the screen on Wed, 16 Sep 2026 10:42:59 GMT]]></title><description><![CDATA[<p dir="auto">Keep in mind that when you try to center elements containing text, you also need to align the text itself inside the component (vertical and horizontal <strong>alignment</strong>).</p>
]]></description><link>https://forum.qt.io/post/840164</link><guid isPermaLink="true">https://forum.qt.io/post/840164</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 16 Sep 2026 10:42:59 GMT</pubDate></item></channel></rss>