mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-12-02 08:33:00 +08:00
19 lines
389 B
C++
19 lines
389 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#pragma once
|
|
#include <QGraphicsView>
|
|
|
|
class GraphicsView : public QGraphicsView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GraphicsView(QGraphicsScene *scene = nullptr, QWidget *parent = nullptr);
|
|
|
|
bool viewportEvent(QEvent *event) override;
|
|
|
|
private:
|
|
qreal totalScaleFactor = 1;
|
|
};
|