QML array alternative syntax
QML and Qt Quick
4
Posts
3
Posters
1.3k
Views
1
Watching
-
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.
Does anyone use it ?
Is some obsloete early QML feature that would be removed at some point ?Thanks,
Christopher -
I think it is just as valid as the other one, so it is unlikely to go away.