C++ (Qt)void MуScene::drawItems( QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[], QWidget *widget){ glPointSize(4); glBegin(GL_POINTS); glColor3f(0, 0, 0); QPointF pnt; for (int i = 0; i < numItems; ++i) { pnt = items[i]->mapToScene(QPointF(0, 0)); glVertex2f(pnt.x(), pnt.y()); } glEnd();}