make sure render-widget gets deleted when switching

This commit is contained in:
Joakim L. Gilje
2021-12-15 20:02:35 +01:00
parent d2115bc5e4
commit 1cc09b9033
2 changed files with 8 additions and 7 deletions

View File

@@ -4,6 +4,7 @@
#include <QStackedWidget>
#include <QKeyEvent>
#include <QEvent>
#include <memory>
namespace Ui {
class RendererStack;
@@ -62,7 +63,7 @@ private:
int currentBuf = 0;
QVector<QImage> imagebufs;
QWidget* current = nullptr;
std::unique_ptr<QWidget> current;
};
#endif // QT_RENDERERCONTAINER_HPP