<?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[Problem with positioning elements in Column Layout]]></title><description><![CDATA[<p dir="auto">I have code:</p>
<pre><code>Item {
            ColumnLayout {
                spacing: 0
                anchors.fill: parent
                Rectangle{
                    Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
                    Layout.fillWidth: true
                    Layout.preferredHeight: (Screen.height*5)/8
                    color: "#E91E63"
                }
                Label {
                    Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
                    text: "Lorem ipsum dolor"
                    font.pixelSize: 28
                    color: "black"
                    font.bold: true
                }
                Label {
                    Layout.alignment: Qt.AlignTop | Qt.AlignHCenter
                    text: "Ut auctor sem nec elit dictum semper"
                    font.pixelSize: 16
                    color: "black"
                }
            }
        }
</code></pre>
<p dir="auto">I want that my Labels are under pink rectangle but then are at the bottom page.<br />
I don't know why<br />
<a href="http://imgur.com/a/xfqlB" target="_blank" rel="noopener noreferrer nofollow ugc">http://imgur.com/a/xfqlB</a></p>
]]></description><link>https://forum.qt.io/topic/79040/problem-with-positioning-elements-in-column-layout</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 14:54:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/79040.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 May 2017 21:33:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with positioning elements in Column Layout on Mon, 08 May 2017 07:58:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyroxar">@<bdi>Pyroxar</bdi></a> Or if the previous one gave what you wanted (the empty white space which increases when the window is made larger goes under the labels, not between the rectangle and the labels), you can try this:</p>
<pre><code>ColumnLayout {
                spacing: 0
                //anchors.fill: parent
                anchors.right: parent.right
                anchors.left: parent.left
                anchors.top: parent.top
</code></pre>
]]></description><link>https://forum.qt.io/post/392295</link><guid isPermaLink="true">https://forum.qt.io/post/392295</guid><dc:creator><![CDATA[Eeli K]]></dc:creator><pubDate>Mon, 08 May 2017 07:58:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with positioning elements in Column Layout on Sun, 07 May 2017 23:34:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pyroxar">@<bdi>Pyroxar</bdi></a> You can try adding a filler item after the labels:</p>
<pre><code>Item {Layout.fillHeight: true}
</code></pre>
]]></description><link>https://forum.qt.io/post/392233</link><guid isPermaLink="true">https://forum.qt.io/post/392233</guid><dc:creator><![CDATA[Eeli K]]></dc:creator><pubDate>Sun, 07 May 2017 23:34:43 GMT</pubDate></item></channel></rss>