Skip to content

Commit

Permalink
Assign parent for QGraphicsScene
Browse files Browse the repository at this point in the history
A call to QGraphicsView::setScene does not make
the view take ownership of the scene.
  • Loading branch information
sakertooth committed Sep 21, 2023
1 parent cb44295 commit 35b728b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Eq/EqParameterWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ EqParameterWidget::EqParameterWidget( QWidget *parent, EqControls * controls ) :
m_pixelsPerOctave = EqHandle::freqToXPixel( 10000, m_displayWidth ) - EqHandle::freqToXPixel( 5000, m_displayWidth );

//GraphicsScene and GraphicsView stuff
auto scene = new QGraphicsScene();
auto scene = new QGraphicsScene(this);
scene->setSceneRect( 0, 0, m_displayWidth, m_displayHeigth );
auto view = new QGraphicsView(this);
view->setStyleSheet( "border-style: none; background: transparent;" );
Expand Down

0 comments on commit 35b728b

Please sign in to comment.