QgsPoint point(10.0, 20.0);
QgsPoint point(10.0, 20.0); qDebug() << "x: " << point.x(); point.setY(30.0); qDebug() << "y: " << point.y();This code creates a point object with coordinates (10.0, 20.0). It then prints the x and y coordinates of the point using the x() and y() methods. The setY() method is used to change the y coordinate of the point to 30.0, and then it prints the new y coordinate. Package library: This class is part of the core library in QGIS C++.