54 #include <QRandomGenerator>
DiagramItem(DiagramType diagramType, QMenu *contextMenu, QGraphicsItem *parent=nullptr)
[0]
DiagramType diagramType() const
void setBrush(const QBrush &brush)
The QBrush class defines the fill pattern of shapes drawn by QPainter.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
void setFlag(GraphicsItemFlag flag, bool enabled=true)
The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene.
void setPolygon(const QPolygonF &polygon)
The QPointF class defines a point in the plane using floating point precision.
static Q_DECL_CONST_FUNCTION QRandomGenerator * global()