[Qt-qml] What´s the correct QML type for arrays?

Cornelius Hald hald at icandy.de
Thu Aug 19 15:31:23 CEST 2010


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



More information about the Qt-qml mailing list