Use QPointF to have access to the coordinates with only one function