<?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[QML array alternative syntax]]></title><description><![CDATA[<p dir="auto">In QML the regular syntax to fill an array in declarative way is :</p>
<p dir="auto">@states: [<br />
State {...},<br />
State {...},<br />
State {...}<br />
]@</p>
<p dir="auto">I found out by accident that an alternative syntax is also supported but it didn't find any doc about it :</p>
<p dir="auto">@states {<br />
State {...}<br />
State {...}<br />
State {...}<br />
}@</p>
<p dir="auto">It doesn't seem new since it is supported also on Qt 4.8 for instance.</p>
<p dir="auto">Does anyone use it ?<br />
Is some obsloete early QML feature that would be removed at some point ?</p>
<p dir="auto">Thanks,<br />
Christopher</p>
]]></description><link>https://forum.qt.io/topic/42417/qml-array-alternative-syntax</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 04:04:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42417.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Jun 2014 08:21:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML array alternative syntax on Wed, 11 Jun 2014 14:14:37 GMT]]></title><description><![CDATA[<p dir="auto">edit: not useful anymore</p>
]]></description><link>https://forum.qt.io/post/231634</link><guid isPermaLink="true">https://forum.qt.io/post/231634</guid><dc:creator><![CDATA[DerMas]]></dc:creator><pubDate>Wed, 11 Jun 2014 14:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to QML array alternative syntax on Wed, 11 Jun 2014 10:05:10 GMT]]></title><description><![CDATA[<p dir="auto">Ok I should fill a bug report on the doc side then</p>
]]></description><link>https://forum.qt.io/post/231602</link><guid isPermaLink="true">https://forum.qt.io/post/231602</guid><dc:creator><![CDATA[X-Krys]]></dc:creator><pubDate>Wed, 11 Jun 2014 10:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to QML array alternative syntax on Wed, 11 Jun 2014 08:53:20 GMT]]></title><description><![CDATA[<p dir="auto">I think it is just as valid as the other one, so it is unlikely to go away.</p>
]]></description><link>https://forum.qt.io/post/231587</link><guid isPermaLink="true">https://forum.qt.io/post/231587</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 11 Jun 2014 08:53:20 GMT</pubDate></item></channel></rss>