QQuickItem->setProperty and QQmlListProperty ?

  • Hi,

    I have a QML Item with a property list<TYPE> myProperty

    I tried doing this :
    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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.