Hi devs!

I'd like my python plugin to set an expression for overriding a property and I have no clue how to do so. I expect there must be some generic way to set expressions.

Specifically, I want to set the expression for the "Image source" of a QgsLayoutItemPicture to:

'/path/to/pictures/' || attribute(@atlas_feature, 'ID') || '.svg'

Hope anyone can explain.

Thanks!
Raymond

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to