[Interest] Array syntax in QML

Christopher Courtois courtois.christopher at gmail.com
Thu Jun 5 10:49:33 CEST 2014


Sorry my last mail was sent before I finished it :/ Let me start again :

In QML the regular syntax to fill an array in declarative way is :

states: [
    State {...},
    State {...},
    State {...}
]

I found out by accident that an alternative syntax is also supported but it
didn't find any doc about it :

states {
    State {...}
    State {...}
    State {...}
}

It doesn't seem new since it is supported also on Qt 4.8 for instance.

Any info on this syntax ?

Thanks,
Christopher


2014-06-05 10:39 GMT+02:00 Christopher Courtois <
courtois.christopher at gmail.com>:

> The reuglat syntax for array is
>
>
> states: [
>
>
>
> ]
>
>
> Christopher Courtois
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140605/1f05a1ad/attachment.html>


More information about the Interest mailing list