mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
Expose QgsFeatures::attribute for QML
by setting Q_INVOKABLE
This commit is contained in:
parent
828061b709
commit
085fd247d6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user