-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.15.2, 6.0.0
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.