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

virtual drawPoints, drawPolygon, and drawRects of QPaintEngine allow drawing only one item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.9.0, 6.8.3
    • 6.6.3, 6.7.3, 6.8.1, 6.8.2
    • PySide, Shiboken
    • None
    • 73eac57ab (dev), 42f5dc1b5 (dev), f0b4b3db4 (6.8), c72a3dc83 (dev), e3631c332 (dev), 28e617228 (6.8), 9f96523b8 (6.8), d7021af1b (dev), 526e3ffe4 (6.8), fdb32106a (dev), 5f1b2885b (6.9), 13dabbb09 (tqtc/lts-6.8)

      The code attached demonstrates the issue. In the three functions, the reported number of items equals the count of what I pass into the methods. But the methods don't get anything but the first items in every case.

      The code prints the following:

      drawPoints:
      points = PySide6.QtCore.QPoint(1, 2)
      pointCount = 2
      drawPolygon:
      points = PySide6.QtCore.QPoint(1, 2)
      pointCount = 2
      mode = <PolygonDrawMode.PolylineMode: 3>
      drawPolygon:
      points = PySide6.QtCore.QPoint(1, 2)
      pointCount = 2
      mode = <PolygonDrawMode.PolylineMode: 3>
      drawPolygon:
      points = PySide6.QtCore.QPoint(1, 2)
      pointCount = 2
      mode = <PolygonDrawMode.OddEvenMode: 0>
      drawPolygon:
      points = PySide6.QtCore.QPoint(1, 2)
      pointCount = 2
      mode = <PolygonDrawMode.OddEvenMode: 0>
      drawRects:
      rects = PySide6.QtCore.QRect(1, 1, 1, 1)
      rectCount = 2
      

      Whatever I pass to the functions, the result is essentially the same. The first item I provide is drawn, the others vanish. So, do I miss anything?

        1. mwe.py
          2 kB
          Anton Yablokov
        2. pyside3002_fixed.py
          2 kB
          Friedemann Kleint
        3. pyside3002_pyqt.py
          2 kB
          Friedemann Kleint
        4. pyside3002.py
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            stsav012 Anton Yablokov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: