55 #include "QtGLGraphicsView.hh" 63 QtGLGraphicsView::QtGLGraphicsView(QWidget* _parent) :
64 QGraphicsView (_parent)
66 setFocusPolicy(Qt::StrongFocus);
67 setAcceptDrops (
true);
70 void QtGLGraphicsView::resizeEvent(QResizeEvent *_event) {
71 QGraphicsView::resizeEvent(_event);
74 scene()->setSceneRect(QRect(QPoint(0, 0), _event->size()));
75 emit sceneRectChanged (QRectF (0, 0, _event->size().width(),_event->size().height()));