[QGIS-Developer] QGIS 3 getComposerItemById should return subclassed item

SIGĂ©al sigeal at sigeal.com
Tue Nov 28 02:06:23 PST 2017


Hi devs,

This code used to work in QGIS 2.x.

|lblTitle =myComposition.getComposerItemById('title')|||lblTitle|.setText('New Title')|

|However, it doesn't anymore in QGIS |2.99.
Instead it returns this error :

|'QgsComposerItem' object has no attribute 'setText'|||

--
Christophe


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171128/39a55c0a/attachment-0001.html>


More information about the QGIS-Developer mailing list