diff --git a/src/core/qgsfeature.h b/src/core/qgsfeature.h index 1717ae7aacd..fe850765c3e 100644 --- a/src/core/qgsfeature.h +++ b/src/core/qgsfeature.h @@ -451,7 +451,7 @@ class CORE_EXPORT QgsFeature * \see setFields */ #ifndef SIP_RUN - QVariant attribute( const QString &name ) const; + Q_INVOKABLE QVariant attribute( const QString &name ) const; #else SIP_PYOBJECT attribute( const QString &name ) const; % MethodCode