31 #include <QGraphicsRectItem>
33 #include "../vmisc/def.h"
41 explicit SceneRect(
const QColor &lineColor, QGraphicsItem *parent =
nullptr);
43 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
46 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option,
47 QWidget *widget =
nullptr) Q_DECL_OVERRIDE;
56 virtual
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
57 virtual
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE
void setOnlyPoint(bool value)
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) Q_DECL_OVERRIDE
virtual ~SceneRect()=default
virtual int type() const Q_DECL_OVERRIDE
void setPointColor(const QString &value)
bool m_onlyPoint
m_rectColor color of point.
void setRectPen(qreal scale)
virtual void refreshPointGeometry(const VPointF &point)
SceneRect(const QColor &lineColor, QGraphicsItem *parent=nullptr)
The VPointF class keep data of point.