5 #include <QGraphicsSceneContextMenuEvent>
27 QGraphicsRectItem::paint(painter,
option, widget);
30 QRectF rect = this->rect();
42 painter->setFont(font);
43 painter->drawText(rect, Qt::AlignCenter,
text);
49 if (event->button() == Qt::LeftButton)