feat: zoom and pan in networkView

This commit is contained in:
parker
2025-06-19 17:33:13 +01:00
parent 5f0dfbfe6b
commit 2feb6eb5b4
10 changed files with 138 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
#pragma once
#include <QGraphicsScene>
class NetworkGraphicsScene
: public QGraphicsScene
{
public:
NetworkGraphicsScene(QGraphicsView *parent = nullptr);
private:
QGraphicsView* parent_;
protected:
void wheelEvent(QGraphicsSceneWheelEvent *wheelEvent) override;
};