#ifndef GRAPHITEM_H #define GRAPHITEM_H #include class GraphItem : public QGraphicsPathItem { public: GraphItem(const QPainterPath &path, QGraphicsItem * parent = 0) : QGraphicsPathItem(path, parent) {_id = 0;} int id() {return _id;} void setId(int id) {_id = id;} private: int _id; }; #endif // GRAPHITEM_H