[SOLVED] Polygon with holes fading
I have managed to get a polygon with holes appearing. However the holes get darker and darker for some reason?
Here is an example...
!http://www.streettrack.co.uk/polygonhole.jpg(Example of polygon hold)!
Here is the code:
path.addPolygon(poly); // Outer region.
if (v_polyinner.size() > 0)
for (int iPoly = 0; iPoly < v_polyinner.size(); iPoly++)
path = path.subtracted(inner);
sscolour << "#" << polyi->getColour();
if (this->sSelectedItemGUID == polyi->getFeatureGUID()) painter.setPen(penHighlight);
It's seems as though as each polygon is added is goes darker.
Whoops, made a mistake loading the coordinates, so multiple polys were on top of each other and gradually fading the holes out.