QQuickItem->setProperty and QQmlListProperty ?
-
Hi,
I have a QML Item with a property list<TYPE> myProperty
I tried doing this :
@
Q_DECLARE_METATYPE(QQmlListProperty<TYPE>)
...
QQuickItem myItem;
...
myItem.setProperty("myProperty", QQmlListProperty<TYPE>( myTypeQList ));@
Unfortunately the list is not filled correctly with the items from the QList, all I see when doing console.log is [object Object]
I would like to use QQuickItem::setProperty instead of fetching data from QML
Thanks for helping