PDA

View Full Version : How to Fill custom shape?



arunb
23rd September 2006, 13:42
Hello ,

I have created arrow in the arc shape using the combination of drawArc() and moveTo() & lineTo() functions. But the problem is i am not able to fill the arrow with the specified color. I tired using fillPath() but of no use.

I have attached the picture of the object what i have drawn and also what i need. Please guide me how to fill.

jacek
23rd September 2006, 14:08
Create QPainterPath using QPainterPath::lineTo() and QPainterPath::arcTo() and then use QPainter::fillPath().