QPoint p(10, 20);
int x = p.x(); int y = p.y();
QPoint p1(10, 20); QPoint p2(5, 10); QPoint p3 = p1 + p2;This code creates two points (`p1` and `p2`) and adds them together to create a third point (`p3`) with x-coordinate 15 and y-coordinate 30. Package Library: Qt Core Library