static bool isObject(const QQmlProperty &property) { return (property.propertyTypeCategory() == QQmlProperty::Object) || //QVariant can also store QObjects. Lets trust our model. (QLatin1String(property.propertyTypeName()) == QLatin1String("QVariant")); }
static bool isList(const QQmlProperty &property) { return property.propertyTypeCategory() == QQmlProperty::List; }