Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3778 Bug in QPainterPath::intersected()
  3. QTBUG-16940

QPainterPath::intersected still fails in some cases

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • Not Evaluated
    • 4.7.0
    • GUI: Painting
    • Mac OS X 10.6
      gcc 4.2.1
      qt-everywhere-opensource-src-4.7.0 (Built from sources)

    Description

      QpainterPath::intersected function does not function properly in some rare cases. The experiencing behavior is not well defined: in the application I'm working on the function returns an empty QPainterPath, while in the standalone test case it just returns a wrong value. This discrepancy might be caused by the rounding errors.

      The test case consists of two QPainterPaths: p1 and p2. They are intersected like this:
      p1.intersected(p2) and p2.intersected(p1). The results should be equal, while they are not.

      Attachments

        1. main.cpp
          1 kB
        2. main.cpp
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            akhodakivskiy Anton Khodakivskiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes