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

QSGGeometry.vertexDataAsPoint2D() returns single point not list

    XMLWordPrintable

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes