I draw a QPainterPath like left side in attachment picture.
I want to fill some color, like black. I use QPainter::fillPath(), but what i get is like the right side in picture.
Only arc part can be filled. I cant understand why?
I draw a QPainterPath like left side in attachment picture.
I want to fill some color, like black. I use QPainter::fillPath(), but what i get is like the right side in picture.
Only arc part can be filled. I cant understand why?
Try to change the fillRule
Cheers,
_
Also ensure that the start of the rectangular section of the path begins at the end of the arc and not the beginning. Also make sure you have a closed path.
Bookmarks