diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-01-17 13:21:21 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2023-01-19 14:24:58 +0100 |
commit | 876f11854eddbe95132692b3b0853470563ff54a (patch) | |
tree | 5189679817c390b2114c3d1f3e5ee6aebd99daf7 /examples | |
parent | 474426afa4cf52e057d321498f78bb0fbd626022 (diff) | |
download | qtwebengine-876f11854eddbe95132692b3b0853470563ff54a.tar.gz |
Disable WebEngineContext dump by default
Keep it enabled for simplebrowser and quicknanobrowser examples. Also
add documentation how to enable it.
[ChangeLog][WebEngineCore] Disabled WebEngineContext dump by default.
Fixes: QTBUG-109040
Pick-to: 6.5
Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/webenginequick/quicknanobrowser/main.cpp | 2 | ||||
-rw-r--r-- | examples/webenginewidgets/simplebrowser/main.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/webenginequick/quicknanobrowser/main.cpp b/examples/webenginequick/quicknanobrowser/main.cpp index 519cfd089..850b8c443 100644 --- a/examples/webenginequick/quicknanobrowser/main.cpp +++ b/examples/webenginequick/quicknanobrowser/main.cpp @@ -12,6 +12,7 @@ #include <QtCore/QCommandLineParser> #include <QtCore/QCommandLineOption> +#include <QtCore/QLoggingCategory> static QUrl startupUrl(const QCommandLineParser &parser) { @@ -31,6 +32,7 @@ int main(int argc, char **argv) QtWebEngineQuick::initialize(); QGuiApplication app(argc, argv); + QLoggingCategory::setFilterRules(QStringLiteral("qt.webenginecontext.debug=true")); QCommandLineParser parser; parser.addHelpOption(); diff --git a/examples/webenginewidgets/simplebrowser/main.cpp b/examples/webenginewidgets/simplebrowser/main.cpp index 477a8171b..b945ef27e 100644 --- a/examples/webenginewidgets/simplebrowser/main.cpp +++ b/examples/webenginewidgets/simplebrowser/main.cpp @@ -5,6 +5,7 @@ #include "browserwindow.h" #include "tabwidget.h" #include <QApplication> +#include <QLoggingCategory> #include <QWebEngineProfile> #include <QWebEngineSettings> @@ -24,6 +25,7 @@ int main(int argc, char **argv) QApplication app(argc, argv); app.setWindowIcon(QIcon(QStringLiteral(":AppLogoColor.png"))); + QLoggingCategory::setFilterRules(QStringLiteral("qt.webenginecontext.debug=true")); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::PluginsEnabled, true); QWebEngineProfile::defaultProfile()->settings()->setAttribute(QWebEngineSettings::DnsPrefetchEnabled, true); |