76 .
adjusted(-extra, -extra, extra, extra);
84 path.addPolygon(arrowHead);
106 qreal arrowSize = 20;
111 QLineF centerLine(myStartItem->
pos(), myEndItem->
pos());
115 for (
int i = 1;
i < endPolygon.
count(); ++
i) {
119 polyLine.
intersects(centerLine, &intersectPoint);
136 arrowHead <<
line().
p1() << arrowP1 << arrowP2;
small capitals from c petite p scientific i
[1]
Arrow(DiagramItem *startItem, DiagramItem *endItem, QGraphicsItem *parent=nullptr)
[0]
QPainterPath shape() const override
[1]
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
[3]
QRectF boundingRect() const override
[0]
QPolygonF polygon() const
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
virtual bool collidesWithItem(const QGraphicsItem *other, Qt::ItemSelectionMode mode=Qt::IntersectsItemShape) const
QPointF mapFromItem(const QGraphicsItem *item, const QPointF &point) const
void setFlag(GraphicsItemFlag flag, bool enabled=true)
The QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene.
QPainterPath shape() const override
void setPen(const QPen &pen)
void setLine(const QLineF &line)
The QLineF class provides a two-dimensional vector using floating point precision.
constexpr QPointF p1() const
void translate(const QPointF &p)
IntersectionType intersects(const QLineF &l, QPointF *intersectionPoint=nullptr) const
const_reference at(qsizetype i) const noexcept
qsizetype count() const noexcept
The QPainter class performs low-level painting on widgets and other paint devices.
void setPen(const QColor &color)
void drawLine(const QLineF &line)
void setBrush(const QBrush &brush)
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule=Qt::OddEvenFill)
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QPen class defines how a QPainter should draw lines and outlines of shapes.
void setColor(const QColor &color)
The QPointF class defines a point in the plane using floating point precision.
The QPolygonF class provides a list of points using floating point precision. \inmodule QtGui.
The QRectF class defines a finite rectangle in the plane using floating point precision.
constexpr QRectF adjusted(qreal x1, qreal y1, qreal x2, qreal y2) const noexcept
QRectF normalized() const noexcept
The QSizeF class defines the size of a two-dimensional object 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 const GLchar *const * path
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent