Re: [QGIS-Developer] Set text of QgsLayoutItemLabel

2018-03-17 Thread SIGéal
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

[QGIS-Developer] Set text of QgsLayoutItemLabel

2018-03-16 Thread KOHLMANN Hannes
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