I have a polygon object which I want to be deleted by the double click of mouse. However the double click only works if I click on the outer line of the polygon. I want it to work when user double clicks on inside of the polygon which is filled with a different color. How can I achieve this?
void ClutterZoneItem::AddFillerPolygon(){
for(int i = 0; i < mNodes.size(); i++){
mpPolygonBuilder->addPoint(mNodes[i]->geometry());
}
mpFillerPolygon->setGeometry(mpPolygonBuilder->toGeometry());
mpFillerPolygon->attributes()->insertAttribute("zone_id", miId);
mpMapViewer->AddToClutterZonesOverlay(mpFillerPolygon);
cout << "Filler polygon eklendi" << endl;
}