Engauge Digitizer  2
GraphicsArcItem.h
1 #ifndef GRAPHICS_ARCITEM_H
2 #define GRAPHICS_ARCITEM_H
3 
4 #include <QGraphicsEllipseItem>
5 
7 class GraphicsArcItem : public QGraphicsEllipseItem
8 {
9 public:
11  GraphicsArcItem(double x,
12  double y,
13  double width,
14  double height,
15  QGraphicsItem *parent = 0);
16 
18  GraphicsArcItem(const QRectF &rect,
19  QGraphicsItem *parent = 0);
20 
23  virtual QRectF boundingRect() const;
24 
26  virtual void paint (QPainter *painter,
27  const QStyleOptionGraphicsItem *option,
28  QWidget *widget);
29 
30 private:
32 
33 };
34 
35 #endif // GRAPHICS_ARCITEM_H
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Paint without interior fill.
Draw an arc as an ellipse but without lines from the center to the start and end points.
virtual QRectF boundingRect() const
QGraphicsEllipseItem ignored transformation when computing bounding rectangle, although it should so ...