On 13 February 2018 at 05:51, SIGéal <sig...@sigeal.com> wrote:
> Hi,
>
> This code used to work in QGIS 2.x.
>
> lblTitle = myComposition.getComposerItemById('title')
> lblTitle.setText('New Title')
>
> However, in QGIS 2.99, myLayout.itemById('title') returns this error :
>
> 'QgsLayoutItem' object has no attribute 'setText'

See discussion at
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QgsLayout-itemById-returns-wrong-object-td5350947.html

Nyall
_______________________________________________
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