QPointF point(3.14, 2.71);
QPointF point(100.0, 200.0); QPoint pointAsInt = point.toPoint();This code creates a QPointF object with x-coordinate 100.0 and y-coordinate 200.0, then converts it to a QPoint with integer coordinates (100, 200). Package library: Qt.