2018-01-23 14:34 GMT+02:00 Enrico Ferreguti <[email protected]>: > from qgis.core import QgsProject > myLayout = QgsProject.instance().layoutManager().layoutByName('test') > myLayoutPicture = myLayout.itemById("picture") > myLayoutPicture.setPicturePath("path to an image") > > and I get the following Exception: > AttributeError: 'QgsLayoutItem' object has no attribute 'setPicturePath'
Which QGIS revision do you use? I can not reproduce your issue on master, all works as expected. -- Alexander Bruy _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
