[QGIS-Developer] Has QgsLayout.itemById() changed?

Nyall Dawson nyall.dawson at gmail.com
Sun Sep 23 02:48:12 PDT 2018


On Sun, 23 Sep 2018 at 19:37, Alessandro Pasotti <apasotti at gmail.com> wrote:
>
> Do you have any clue about why this issue is not always reproducible?

I suspect it's something to do with whether the item was created in
Python or c++.

Nyall

>
>
> On Sun, Sep 23, 2018, 11:27 Nyall Dawson <nyall.dawson at gmail.com> wrote:
>>
>> On Fri, 21 Sep 2018 at 23:20, Raymond Nijssen <r.nijssen at terglobo.nl> wrote:
>>
>> > which doesn't work anymore, because there is no setText() function on a
>> > QgsLayoutItem. Has anything changed recently? Does any one know a solution?
>>
>> Nothing has changed recently -- this has always been fragile, and the
>> bug lies deep within the library used to create the Python bindings.
>>
>> See e.g.
>>
>> http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-QgsLayout-itemById-returns-wrong-object-td5350947.html
>>
>> for a workaround
>>
>> Nyall
>>
>> Nyall
>>
>> >
>> > Regards,
>> > Raymond
>> > _______________________________________________
>> > QGIS-Developer mailing list
>> > QGIS-Developer at lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list