Given QML such as:
Item {
objectName: "myitem"
property var myarr: [1,2,3]
}
How can it be read from C++?
The following doesn't work:
QObject* item = root->findChild<QObject*>("myitem");
QVariant value = item->property("myarr");
While value.isValid() returns true, if I query QMetaType::typeName( QMetaType::Type(int(value.type())) )
it yields "QWidget*".
(Using Qt 5.9.4 on x86)