Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.4.1
-
None
Description
Using the QSGGeometry.vertexDataAsPoint2D() function the return value is a QSGGeometry.Point2D type. However, it should be a list of mutable points. This bug makes it hard to create SceneGraph based QQuickItem from Python.
<PySide6.QtQuick.QSGGeometry.Point2D object at 0x7efdd11cfe40>
Traceback (most recent call last):
minmal.py", line 7, in <module>
print(v[0])
TypeError: 'PySide6.QtQuick.QSGGeometry.Point2D' object is not subscriptable
Attachments
Issue Links
- duplicates
-
PYSIDE-1345 vertexDataAsPoint2D() in QSGGeometry returns only one point
- Closed