[APP] - Fix leaking QGraphicsScene in QuarterWidget

This commit is contained in:
vosk
2021-01-28 22:56:31 +02:00
committed by wmayer
parent 354ac48d41
commit 17ec9b7c08

View File

@@ -289,7 +289,7 @@ QuarterWidget::QuarterWidget(QtGLContext * context, QWidget * parent, const QtGL
void
QuarterWidget::constructor(const QtGLFormat & format, const QtGLWidget * sharewidget)
{
QGraphicsScene* scene = new QGraphicsScene;
QGraphicsScene* scene = new QGraphicsScene(this);
setScene(scene);
setViewport(new CustomGLWidget(format, this, sharewidget));