19 ,
public QGraphicsItem
24 static const constexpr int Type = ItemType::Comment;
25 int type()
const final override {
return Type; }
29 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
32 QRectF boundingRect()
const override;
34 void setHtmlContent(QString htmlText);
36 void setSelected(
bool);
39 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
40 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
41 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
42 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* evt)
override;
52 QPointF m_clickedPoint{};
53 QPointF m_clickedScenePoint{};
Definition TextItem.hpp:13