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.christop...@gmail.com>:

> The reuglat syntax for array is
>
>
> states: [
>
>
>
> ]
>
>
> Christopher Courtois
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to