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

QPainterPath::operator== behavior change

XMLWordPrintable

      There was a change for operator== between 5.13.0 and 5.13.1 in 697910e5fbd382e78bc1bcbac3f5824aded059b4

      Now operator== between "null" QPainterPath and empty QPainterPath are equal. Empty QPainterPath is a single point path with the point at 0,0.

      The issue is that assigning such single point at 0,0 path is not seen as a change to those null paths in properties for example.

      Single point path might not sound useful, but if points are added one by one from user input, this can cause issues in some cases where the initial value is a "null" path and getting the path, adding a point at 0,0 and assigning back to a property is not working.

      However if the single point use case doesn't make sense for QPainterPath, any single point path with slightly different coordinate is seen as a change over to "null" path, so in that case there would be a little inconsistency.

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

            vgt Eirik Aavitsland
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes