View Full Version : how to draw area

23rd May 2013, 12:45
hi. how can i draw into painter this area as on picture? picture is an examples. black it is point and radius (i know only this), white is transparent, and red is filling with hatch.


i haven't idea how can i join drawArc and drawPolygon and fill them with a hole, maybe with drawPath

Santosh Reddy
23rd May 2013, 12:53
Yes you have to use QPainterPath and QPainter::drawPath.

Refer example: Painter Paths Example (http://qt-project.org/doc/qt-4.8/painting-painterpaths.html)

29th May 2013, 12:42
thanks path works ok.

but how can i check which points is in red area?