7#ifndef GRAPHICS_POINT_POLYGON_H
8#define GRAPHICS_POINT_POLYGON_H
10#include <QGraphicsPolygonItem>
24 const QPolygonF &polygon);
27 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value);
52 void setOpacityForSubtree (
double opacity);
This class add event handling to QGraphicsPolygonItem.
void setRadius(int radius)
Update the radius.
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Unhighlight this point.
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Accept hover so point can be highlighted when cursor is over it as a guide to user.
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept moves by dragging so moved items can be identified. This replaces unreliable hit tests.
void signalPointHoverEnter(QString)
Signal for geometry window to highlight the current point upon hover enter.
void signalPointHoverLeave(QString)
Signal for geometry window to unhighlight the current point upon hover leave.
void setShadow(GraphicsPointPolygon *shadow)
Bind this graphics item to its shadow.
Graphics item for drawing a circular or polygonal Point.