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

It should be possible to iterate the QRects in a QRegion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.2.1
    • PySide
    • None
    • Windows
    • 943aa9ef6fef7533a3566f230aaf878efe46725e (pyside/pyside-setup/dev) 1c1134fe90e9f185ab4b052a829dd8bf5ff0e0e8 (pyside/pyside-setup/6.2)

    Description

      The C++ API provides {c}begin() and {c}end() to iterate over all the QRects in a QRegion.

      The PySide API provides no way of doing this as far as I can see. In PySide begin() always returns the first QRect. PySide1 had a rects() method which provided all the QRects.

      I am porting a PySide/Qt4 application to PySide6/Qt6 and this is a show-stopper for me.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            mark@qtrac.eu Mark Summerfield
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes