[PyQt] How do you use QQmlListProperty?
Cody Scott
cody at perspexis.com
Thu Jan 5 23:34:08 GMT 2017
I have a subclass of QObject with a list as a property. I'm trying to set
the list property in QML but I'm getting TypeError: list element must be of
type 'str', not 'NoneType' followed by a signal SIGABRT (Abort)
The docs talk about using setTarget() but I can't figure out how to use it.
How do you specify the property.
Example code here:
https://github.com/Siecje/pyqtProperty-list/tree/QQMLListProperty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170105/ff984c5f/attachment.html>
More information about the PyQt
mailing list