<?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[UI expnader component]]></title><description><![CDATA[<p dir="auto">Is there any UI component which is like 'Expander'? (refer below)<br />
collapse and expand component <a href="http://www.wpftutorial.net/Expander.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.wpftutorial.net/Expander.html</a></p>
]]></description><link>https://forum.qt.io/topic/67369/ui-expnader-component</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 21:59:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/67369.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 May 2016 07:26:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UI expnader component on Tue, 12 Jul 2016 07:10:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/litera2">@<bdi>literA2</bdi></a><br />
I would like to do it like this</p>
<pre><code>MyExpander{
  GridLayout{
    Rectangle{
      Text { }
      Text { }
    }
    Rectangle{
      Text { }
      Text { }
    }
  }
}
</code></pre>
<p dir="auto">MyExpander is my new component. I would like to reuse this MyExpander object in other qml.<br />
Under the MyExpander should be able to control its children collapsible.</p>
]]></description><link>https://forum.qt.io/post/337236</link><guid isPermaLink="true">https://forum.qt.io/post/337236</guid><dc:creator><![CDATA[Jehyeok]]></dc:creator><pubDate>Tue, 12 Jul 2016 07:10:35 GMT</pubDate></item><item><title><![CDATA[Reply to UI expnader component on Mon, 11 Jul 2016 15:43:01 GMT]]></title><description><![CDATA[<p dir="auto">You can do it like this:</p>
<pre><code>Rectangle {
    implicitHeight: header.implicitHeight + (collapsed ? listview.contentHeight : 0)
    Item {} // header
    Listview {}
}
</code></pre>
]]></description><link>https://forum.qt.io/post/337140</link><guid isPermaLink="true">https://forum.qt.io/post/337140</guid><dc:creator><![CDATA[literA2]]></dc:creator><pubDate>Mon, 11 Jul 2016 15:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to UI expnader component on Mon, 11 Jul 2016 10:11:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> You are right. I saw them in search results, but I mean it wasn't what I want. I want to have similar like groupbox component.  <a href="http://doc.qt.io/qt-5/qml-qtquick-controls-groupbox.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qml-qtquick-controls-groupbox.html</a></p>
]]></description><link>https://forum.qt.io/post/337097</link><guid isPermaLink="true">https://forum.qt.io/post/337097</guid><dc:creator><![CDATA[Jehyeok]]></dc:creator><pubDate>Mon, 11 Jul 2016 10:11:23 GMT</pubDate></item><item><title><![CDATA[Reply to UI expnader component on Mon, 11 Jul 2016 10:03:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jehyeok">@<bdi>Jehyeok</bdi></a> said:</p>
<blockquote>
<p dir="auto">Sorry <a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> , I don't get any reference from your keyword in google.</p>
</blockquote>
<p dir="auto">come on... do you want me really to believe that?!</p>
<p dir="auto"><a href="http://devblog.blackberry.com/2013/01/how-to-make-collapsible-items-using-cascades-and-qml/" target="_blank" rel="noopener noreferrer nofollow ugc">Example 1</a>, <a href="https://gist.github.com/elpuri/3753756" target="_blank" rel="noopener noreferrer nofollow ugc">Example 2</a></p>
]]></description><link>https://forum.qt.io/post/337096</link><guid isPermaLink="true">https://forum.qt.io/post/337096</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Mon, 11 Jul 2016 10:03:10 GMT</pubDate></item><item><title><![CDATA[Reply to UI expnader component on Mon, 11 Jul 2016 10:11:50 GMT]]></title><description><![CDATA[<p dir="auto">Sorry <a class="plugin-mentions-user plugin-mentions-a" href="/user/raven-worx">@<bdi>raven-worx</bdi></a> , I couldn't find right references.</p>
<p dir="auto">Actually<br />
I try to use 'Loader' to make similar putting Component or null in sourceComponent property.</p>
<pre><code>        Loader {
            id: itemLoader
            anchors.fill: parent
            visible: !collapsed
            sourceComponent: collapsed ? null : componentItem
        }
</code></pre>
<p dir="auto">But, I don't think it is best. Because I need to put component in it still.</p>
<pre><code>    MyExpander{
        componentItem: Component{
            Rectangle{
                Text {
                }
        }
    }
</code></pre>
<p dir="auto">It would be nice to design as other layout components to hold children in it.<br />
Do you have any idea?</p>
<pre><code>    GridLayout{
        Rectangle{
            Text {
            }
        }
    }
</code></pre>
]]></description><link>https://forum.qt.io/post/337094</link><guid isPermaLink="true">https://forum.qt.io/post/337094</guid><dc:creator><![CDATA[Jehyeok]]></dc:creator><pubDate>Mon, 11 Jul 2016 10:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to UI expnader component on Mon, 23 May 2016 07:31:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jehyeok">@<bdi>Jehyeok</bdi></a><br />
search in google for "qml collapsible" and you will find some examples</p>
]]></description><link>https://forum.qt.io/post/328971</link><guid isPermaLink="true">https://forum.qt.io/post/328971</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Mon, 23 May 2016 07:31:46 GMT</pubDate></item></channel></rss>