change QPoint to QPointF