30 setFlag(QGraphicsItem::ItemIgnoresTransformations);
66 painter->setBrush(QBrush(
m_color));
67 QPen pen(QBrush(
m_color), 2, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin);
68 pen.setCosmetic(
true);
70 painter->setRenderHint(QPainter::Antialiasing,
true);
82 QVector <QetGraphicsHandlerItem *> list_;
83 for (QPointF point : points)
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
QetGraphicsHandlerItem::paint.
The QetGraphicsHandlerItem class This graphics item represents a point, destined to be used as an han...
void setColor(QColor color)
QetGraphicsHandlerItem::setColor.
QRectF boundingRect() const override
QetGraphicsHandlerItem::boundingRect.
QetGraphicsHandlerItem(qreal size=10)
QetGraphicsHandlerItem::QetGraphicsHandlerItem.
static QVector< QetGraphicsHandlerItem * > handlerForPoint(const QVector< QPointF > &points, int size=10)
QetGraphicsHandlerItem::handlerForPoint.