[QGIS-Developer] set data defined override expression with python?

Raymond Nijssen r.nijssen at terglobo.nl
Tue Aug 21 08:00:24 PDT 2018

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.


More information about the QGIS-Developer mailing list