Stacked Graphs
Geometry & Aesthetics
 All Classes Functions Variables Enumerations
graphview.h
1 #ifndef GRAPHVIEW_H
2 #define GRAPHVIEW_H
3 
4 #include <QGraphicsView>
5 #include "graphscene.h"
6 
10 class GraphView : public QGraphicsView
11 {
12  Q_OBJECT
13 
14 public:
15  explicit GraphView(GraphScene* scene,QWidget *parent);
16  ~GraphView();
17 
21  void ResetView();
22 protected:
23  void wheelEvent(QWheelEvent* ev) override;
24  void resizeEvent(QResizeEvent* ev) override;
25  void mousePressEvent(QMouseEvent* ev) override;
26 private:
27  void updateSceneRect();
28  QRectF mCurSceneRect;
29  bool mUpdateRect;
30 private slots:
31  void scrolled(int val);
32 };
33 
34 #endif // GRAPHVIEW_H
A QGraphicsScene subclass which is responsible for the creation, drawing and rendering of a stacked g...
Definition: graphscene.h:14
void ResetView()
Resets the view to show the whole scene.
Definition: graphview.cpp:79
A QGraphicsView with special handling for GraphScene scenes.
Definition: graphview.h:10