summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2017-03-28 08:21:46 +0200
committerFlorian Bruhin <qt-project.org@the-compiler.org>2017-03-28 14:29:25 +0000
commitc69bceeb40ce7d8fb3f8bc12332a3eb3c96887d1 (patch)
tree20241ab7314188cb5117d508e9302bafb36866e9 /examples/webenginewidgets/contentmanipulation
parent2c942bee38ef3b064a2d9847f91603765c5da20d (diff)
Set WA_DeleteOnClose in contentmanipulation example
Otherwise, the MainWindow and QWebEngineView remains on the heap when closing the application. Task-number: QTBUG-59765 Change-Id: Ia643d1e919ca5f0a1d9405ba9b7ab72aabd8c051 Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webenginewidgets/contentmanipulation')
-rw-r--r--examples/webenginewidgets/contentmanipulation/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/webenginewidgets/contentmanipulation/mainwindow.cpp b/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
index 3198f090..74d647c6 100644
--- a/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
+++ b/examples/webenginewidgets/contentmanipulation/mainwindow.cpp
@@ -70,6 +70,7 @@ InvokeWrapper<Arg, R, C> invoke(R *receiver, void (C::*memberFun)(Arg))
MainWindow::MainWindow(const QUrl& url)
{
+ setAttribute(Qt::WA_DeleteOnClose, true);
progress = 0;
QFile file;