PDA

View Full Version : how to draw area



stevocz
23rd May 2013, 13: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.

9059

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, 13: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)

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

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