What fill mode do you have set on the path?
Hello.
I'm using WindingFill, but in any case I tested with either of the fill modes and the result is the same.
According to some more research, QPainterPath::simplified will output a path that looks the same as the original when painted.
So for "moveTo" elements like that rectangle I can create a temporary path and then unite both as a boolean operation.
Additionally, QPainterPath::simplified will convert that path which originally has 7 elements into a 145 "lineTo" elements path that is an approximation, so it won't work for what I want.
This is the result from QPainterPath::simplified:
I'll try something with a computational geometry library, and then feed the results back to Qt for rendering.
Bookmarks