qt_demoe/netfriend/imageviewwindow/graphicsview.cpp

18 lines
280 B
C++
Raw Normal View History

2021-11-17 07:33:19 +00:00
#include "graphicsview.h"
GraphicsView::GraphicsView(QGraphicsScene *scene)
: QGraphicsView(scene)
{
}
GraphicsView::~GraphicsView()
{
}
void GraphicsView::resizeEvent(QResizeEvent *event)
{
QGraphicsView::resizeEvent(event);
fitInView(sceneRect(), Qt::KeepAspectRatio);
}