[PyQt] SIGABRT when setting QQmlListProperty

Phil Thompson phil at riverbankcomputing.com
Fri Jan 13 22:24:49 GMT 2017


On 13 Jan 2017, at 6:06 pm, Cody Scott <cody at perspexis.com> wrote:
> 
> I'm using @pyqtProperty(QtCore.QVariant) for the list property and it works as long as I do .toVariant() in the setter.
> 
> One thing is that it calls the setter twice for each instance in this example. I believe it should only call each setter once. 
> 
> https://gist.github.com/Siecje/d1f2b270305762b4f73540c72adee6b8

If you comment in the test to see if the value has really changed then it seems to do as you expect.

Phil


More information about the PyQt mailing list