The method I used is creating a polygon from QPointF or QPolygonF and based from that polygon having the same shaped I want to clip the polygon created into the original image.