Description
When you pass an opaque container from Python to QML, QML sees it as a PyObject, not as its native Qt type. The attached example results in the following printed to the console:
<PySide6.QtGui.QPointFList object at 0x0000020A25EEEDB0> [PySide6.QtCore.QPointF(1.000000, 2.000000)] qml: QVariant(PySide::PyObjectWrapper, 0x20a25eeedb0)
It would be useful if QML saw it as a QList, to make passing data from Python to QML more efficient.
Attachments
For Gerrit Dashboard: PYSIDE-2820 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
579613,4 | Register a Python to QVariant value conversion for opaque containers of QList | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |