VPTissue Reference Manual
|
Scrollable QGraphicsView with zoom functionality. More...
#include <MyGraphicsView.h>
Public Member Functions | |
MyGraphicsView (std::shared_ptr< QGraphicsScene > g, QWidget *parent=nullptr) | |
MyGraphicsView (QWidget *parent=nullptr) | |
Protected Member Functions | |
void | wheelEvent (QWheelEvent *event) |
Scrollable QGraphicsView with zoom functionality.
Also takes co-ownership of graphics scene.
Definition at line 33 of file MyGraphicsView.h.
SimShell::Gui::MyGraphicsView::MyGraphicsView | ( | std::shared_ptr< QGraphicsScene > | g, |
QWidget * | parent = nullptr |
||
) |
g | Graphics scene. Will take co-ownership. |
parent | Parent widget. |
Definition at line 30 of file MyGraphicsView.cpp.
SimShell::Gui::MyGraphicsView::MyGraphicsView | ( | QWidget * | parent = nullptr | ) |
parent | Parent widget. |
Definition at line 36 of file MyGraphicsView.cpp.