- QWidget *widget) {
- painter->fillRect(0, 0, width, height, QColor(0xcc, 0xcc, 0xff, 0xff));
- painter->setPen(QColor(0x00, 0x00, 0xff, 0xff));
- painter->drawRect(0, 0, width, height);
- painter->drawText(5, 15, name);
- if (_widget.text() != "")
- _widget.render(painter, QPoint(5, 20));
- }
+ QWidget *widget);
+ QRectF boundingRect() const;
+ std::array<QPointF, 3> getExits() const;
+
+ void mouseMoveEvent(QGraphicsSceneMouseEvent * event)
+ { QGraphicsItem::mouseMoveEvent(event); scene()->update(); }