Hi,
This thread might help you to find a workaround :
https://gis.stackexchange.com/questions/241213/how-to-get-a-composer-label-by-id-with-python-in-qgis
--
Christophe
Le 16/03/2018 à 16:56, KOHLMANN Hannes a écrit :
Hello!
I am facing difficulties trying to set the text of a QgsLayoutIte
Hello!
I am facing difficulties trying to set the text of a QgsLayoutItemLabel.
I do something like the following to load a .qpt composer template and print
this to a .png file (which works)
path = "C:\\QGIS3\\apps\\qgis\\composer_templates"
template_file = open(path+"\\ANSR_print_composer2.qpt