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

QSGGeometry.indexDataAsUShort() returns single int instead of list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.1
    • PySide
    • Linux, Ubuntu, X11, Python3.12, PySide6.9.1, Qt6
    • Linux/X11

      When calling the QSGGeometry().indexDataAsUShort() or .indexDataAsUInt() a single int is returned, but it should return a list (or some kind of array) of int's. This makes it impossible to use the index-system properly.

      geometry = QSGGeometry(…)
      …
      idc = geometry.indexDataAsUInt() # -> List[int]
      print(type(idc)) 
      <class 'int'>
      
      uint *QSGGeometry::indexDataAsUInt()
      

      apparently of size

      int QSGGeometry::indexCount() const
      

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

            crmaurei Cristian Maureira-Fredes
            maleydo Martin Suranovský
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes