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

Raymond Nijssen r.nijssen at terglobo.nl
Sun Sep 23 04:50:30 PDT 2018


Thank you Nyall and Allesandro.

So I don't need to file the bus anymore. But who could/would dive into 
this and fix it? And how much would it cost? I might be able to find 
some funding.

For now I will use the workaround.

Raymond



On 23-09-18 11:48, Nyall Dawson wrote:
> 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
> 

-- 
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
The Netherlands
+31 (0) 6 25 31 49 83


More information about the QGIS-Developer mailing list