[Qt-qml] What´s the correct QML type for arrays?
Gregory Schlomoff
gregory.schlomoff at gmail.com
Fri Aug 20 04:15:06 CEST 2010
Thanks for sharing. I was wondering for a long time how to use the qml list
type. The documentation gives absolutely no clue that you must use the
bracket syntax, like in C++. I never thought that it was possible to do that
in javascript.
On Thu, Aug 19, 2010 at 8:31 PM, Cornelius Hald <hald at icandy.de> wrote:
> Am 19.08.2010 14:54, schrieb Cornelius Hald:
> > // SlideShow.qml
> > Item {
> > property string title
> > property variant slides
> > }
>
> Changing 'variant' to 'list<Item>' solved my problem. The correct code
> now looks like this:
>
> Item {
> property string title
> property list<Item> slides
> }
>
> Cheers,
> Conny
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100820/3bc8e6ca/attachment.html
More information about the Qt-qml
mailing list