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

QPolygonF doesn't have test coverage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.3
    • GUI: Painting
    • None
    • All

      There is no test coverage for QPolygonF at all, and only limited for QPolygon. Instead mostly it's relied that QPainterPath does the right thing, which it really doesn't for anything but the most trivial case - treating the polygon as a list of points.

      A very simple examples are ::intersected and ::united not being symmetric:

      QPolygon a(...), b(...);
      Q_ASSERT(a.intersected(b) == b.intersected(a));
      

      fails.

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

            vgt Eirik Aavitsland
            kshegunov Konstantin Shegunov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes