[PyQt] pyqtProperty type error
Sietse
s.achterop at rug.nl
Wed Oct 30 09:13:28 GMT 2019
Hello list,
I am porting qt5/qtconnectivity/examples/lowenertyscanner to pyqt5.
It can be found in on github <https://github.com/SietseAchterop/BLE_pyqt5>
in *main.py*
There are 2 very similar uses of pyqtProperty, the first is working, the
second (servicesList) gives the following error:
The question is, why is the second use giving an error?
Both properties are used in the same way as a model in a ListView in
main.qml and Service.qml respectively.
The relevant code snippets:
The last 2 return lists of DeviceInfo and ServiceInfo respectively:
Hopefully someone can help.
Thanks in advance, Sietse
--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html
More information about the PyQt
mailing list