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

2018-09-23 Thread Nyall Dawson
On Sun, 23 Sep 2018 at 21:50, Raymond Nijssen wrote: > > 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. Let me kick off some discussions with PyQt

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

2018-09-23 Thread Raymond Nijssen
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

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

2018-09-23 Thread Nyall Dawson
On Sun, 23 Sep 2018 at 19:37, Alessandro Pasotti 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 wrote: >> >> On Fri, 21 Sep

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

2018-09-23 Thread Alessandro Pasotti
Do you have any clue about why this issue is not always reproducible? On Sun, Sep 23, 2018, 11:27 Nyall Dawson wrote: > On Fri, 21 Sep 2018 at 23:20, Raymond Nijssen > wrote: > > > which doesn't work anymore, because there is no setText() function on a > > QgsLayoutItem. Has anything changed

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

2018-09-23 Thread Nyall Dawson
On Fri, 21 Sep 2018 at 23:20, Raymond Nijssen 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

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

2018-09-23 Thread Alessandro Pasotti
On Fri, Sep 21, 2018 at 8:36 PM Raymond Nijssen wrote: > Not working for me. I just built todays master (e85c09254c) and get the > same result. What version did you build? > Same as yours. Btw, please file a ticket, I just re-tested it now and got the issue again, this is my workflow: - Open

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

2018-09-21 Thread Raymond Nijssen
Not working for me. I just built todays master (e85c09254c) and get the same result. What version did you build? On 21-09-18 16:29, Alessandro Pasotti wrote: Hi Raymond, You know what? I've just rebased and rebuilt current master and I cannot reproduce it anymore :( I checked the

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

2018-09-21 Thread Alessandro Pasotti
Hi Raymond, You know what? I've just rebased and rebuilt current master and I cannot reproduce it anymore :( I checked the bindings code and it looks fine, can you check latest master? On Fri, Sep 21, 2018 at 3:47 PM Raymond Nijssen wrote: > Will do so. Thank you Alessandro! > > > > On

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

2018-09-21 Thread Raymond Nijssen
Will do so. Thank you Alessandro! On 21-09-18 15:32, Alessandro Pasotti wrote: Hi Raymond, confirmed, there is probably something broken in the bindings, please file a ticket. On Fri, Sep 21, 2018 at 3:20 PM Raymond Nijssen > wrote: Running this python

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

2018-09-21 Thread Alessandro Pasotti
Hi Raymond, confirmed, there is probably something broken in the bindings, please file a ticket. On Fri, Sep 21, 2018 at 3:20 PM Raymond Nijssen wrote: > Running this python script (in qgis 3.3): > > p = QgsProject.instance() > lom = p.layoutManager() > lo = lom.layoutByName('a4') > item =

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

2018-09-21 Thread Raymond Nijssen
Running this python script (in qgis 3.3): p = QgsProject.instance() lom = p.layoutManager() lo = lom.layoutByName('a4') item = lo.itemById('label_title') print(item) a few weeks ago, it outputed this: but today it outputs: My next line is: item.setText('hello') which doesn't work