<?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[Positioning in qml is incomplete]]></title><description><![CDATA[<p dir="auto">we can't create "<a href="https://doc.qt.io/qt-5/qtwidgets-graphicsview-anchorlayout-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">Anchor Layout Example</a>" in qml.<br />
two problems:</p>
<ul>
<li>without layout dont exist minimum, preferred, maximum width and height.</li>
<li>with layout can't use anchors.</li>
</ul>
]]></description><link>https://forum.qt.io/topic/109751/positioning-in-qml-is-incomplete</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 19:27:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/109751.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Dec 2019 06:16:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Positioning in qml is incomplete on Fri, 03 Jan 2020 11:47:16 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, this is beyond my current capabilities. How far have you got with it?</p>
]]></description><link>https://forum.qt.io/post/570268</link><guid isPermaLink="true">https://forum.qt.io/post/570268</guid><dc:creator><![CDATA[Markkyboy]]></dc:creator><pubDate>Fri, 03 Jan 2020 11:47:16 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning in qml is incomplete on Sun, 15 Dec 2019 04:54:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markkyboy">@<bdi>Markkyboy</bdi></a> thanks.<br />
please change "Anchor Layout Example" form size and look at how the buttons size change.</p>
]]></description><link>https://forum.qt.io/post/567358</link><guid isPermaLink="true">https://forum.qt.io/post/567358</guid><dc:creator><![CDATA[AliPanahi2]]></dc:creator><pubDate>Sun, 15 Dec 2019 04:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning in qml is incomplete on Sat, 14 Dec 2019 18:38:38 GMT]]></title><description><![CDATA[<p dir="auto">Okay, this is as close as I could get (but without anchoring methods);</p>
<pre><code>import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Layouts 1.3
import QtQuick.Controls 1.4

Window {
    visible: true
    width: 200; height: 120
    title: qsTr("Anchor layout in QML")

    GridLayout {
        rows: 4
        columns: 3

        // row 1
        Button {
            text: "A"
        }
        Button {
            text: "B"
            Layout.fillWidth: true
            Layout.columnSpan: 2
        }

        // row 2
        Button {
            text: "F"
            Layout.row: 2
            Layout.preferredWidth: 40
        }

        //row 3
        Button {
            text: "G"
            Layout.row: 3
            Layout.preferredWidth: 40
        }

        // row2
        Button {
            text: "C"
            Layout.row: 2
            Layout.rowSpan: 2
            Layout.column: 1
            Layout.fillHeight: true
        }

        // row 4
        Button {
            text: "D"
            Layout.fillWidth: true
            Layout.columnSpan: 2
            Layout.row: 4
        }
        Button {
            text: "E"
            Layout.row: 4
            Layout.column: 2
        }
    }
}

</code></pre>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/5d034b42-83d7-4167-be98-e6beb77862c7.JPG" alt="Capture.JPG" class=" img-fluid img-markdown" /><br />
<img src="https://ddgobkiprc33d.cloudfront.net/fcb9cc65-8211-4c82-aa66-662601cd0848.JPG" alt="Capture1.JPG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/567322</link><guid isPermaLink="true">https://forum.qt.io/post/567322</guid><dc:creator><![CDATA[Markkyboy]]></dc:creator><pubDate>Sat, 14 Dec 2019 18:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning in qml is incomplete on Sat, 14 Dec 2019 12:34:24 GMT]]></title><description><![CDATA[<p dir="auto">Ahhh, I see, sorry, I knew I misunderstood. Okay, you want to reproduce the original but using QML.</p>
<p dir="auto">I will see what I can come up with, as I have several personal apps that use multiples of buttons.</p>
]]></description><link>https://forum.qt.io/post/567312</link><guid isPermaLink="true">https://forum.qt.io/post/567312</guid><dc:creator><![CDATA[Markkyboy]]></dc:creator><pubDate>Sat, 14 Dec 2019 12:34:24 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning in qml is incomplete on Sat, 14 Dec 2019 12:22:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markkyboy">@<bdi>Markkyboy</bdi></a> no, this example make and run correctly.<br />
can you write this example with qml to working like this?</p>
]]></description><link>https://forum.qt.io/post/567309</link><guid isPermaLink="true">https://forum.qt.io/post/567309</guid><dc:creator><![CDATA[AliPanahi2]]></dc:creator><pubDate>Sat, 14 Dec 2019 12:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Positioning in qml is incomplete on Sat, 14 Dec 2019 10:58:53 GMT]]></title><description><![CDATA[<p dir="auto">Are you saying you cannot make the example run?, it should work, provided you have used the correct data. If you use the resources from the following link (.pro, .cpp) <a href="https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/graphicsview/anchorlayout?h=5.14" target="_blank" rel="noopener noreferrer nofollow ugc">https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/graphicsview/anchorlayout?h=5.14</a> it should just work.</p>
<p dir="auto">Perhaps I misunderstand your question . . . ?</p>
]]></description><link>https://forum.qt.io/post/567299</link><guid isPermaLink="true">https://forum.qt.io/post/567299</guid><dc:creator><![CDATA[Markkyboy]]></dc:creator><pubDate>Sat, 14 Dec 2019 10:58:53 GMT</pubDate></item></channel></rss>