Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60024

QPolygonF::intersected incorrectly returns a non-empty polygon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Beta 3
    • 5.8.0
    • Core: Other
    • None

    Description

      See attached file for the 2 poly definitions. These polygons do not intersect at all, but QPolygonF::intersected report a non-empty polygon corresponding to the right side of the second polygon which is a rect.
      The same operation using QPolygon, or QRegion, or QPainterPath work ok.

      I believe it is connected with this bug: QTBUG-48003

      Attachments

        1. pix.png
          pix.png
          20 kB
        2. poly_intersection_bug.txt
          9 kB
        3. test.zip
          6 kB

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            matirai Philippe
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: