Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2143

QSGGeometry.vertexDataAsPoint2D() returns single point not list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.4.1
    • PySide
    • None
    • All

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            strahlex Alexander Rössler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes