¡@

Home 

c++ Programming Glossary: myqgraphicsview

How to draw a point (on mouseclick) on a QGraphicsScene

http://stackoverflow.com/questions/7830054/how-to-draw-a-point-on-mouseclick-on-a-qgraphicsscene

#include QGraphicsEllipseItem #include QMouseEvent class MyQGraphicsView public QGraphicsView Q_OBJECT public explicit MyQGraphicsView.. public QGraphicsView Q_OBJECT public explicit MyQGraphicsView QWidget parent 0 signals public slots void mousePressEvent QMouseEvent.. small radius. #include myqgraphicsview.h #include QPointF MyQGraphicsView MyQGraphicsView QWidget parent QGraphicsView parent scene new..