Use QPointF and QRectF everywhere