54 #include <QGraphicsItem>
Edge(Node *sourceNode, Node *destNode)
[0]
QRectF boundingRect() const override
[2]
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
[3]
int type() const override
Node * sourceNode() const
[0]
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPointF class defines a point in the plane using floating point precision.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLsizei GLsizei GLchar * source