diff --git a/templates/lib/metatype.cpp b/templates/lib/metatype.cpp index a8a15949..33737472 100644 --- a/templates/lib/metatype.cpp +++ b/templates/lib/metatype.cpp @@ -182,7 +182,7 @@ QVariant Grantlee::MetaType::lookup(const QVariant &object, return QVariant(); } const auto mp = mo->property(idx); - return mp.readOnGadget(&object); + return mp.readOnGadget(object.constData()); } }