diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2018-10-18 11:38:34 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2018-11-13 16:11:44 +0000 |
commit | cfe53bce924e40c944850fd0418d53c8ba760dc1 (patch) | |
tree | b8b119d19e9dd7a2802bee413ce8a74cace949c8 /examples/webenginewidgets/minimal | |
parent | 68524d22255c0e2a76b47caec3ef01f3d23d955c (diff) |
Set organizationName of all examples to QtExamples
Group directories under ~/.cache and ~/.config.
Fixes: QTBUG-71669
Change-Id: Ia55aeab8c0e38f58afcbda128f04fd3d85c3df5e
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples/webenginewidgets/minimal')
-rw-r--r-- | examples/webenginewidgets/minimal/doc/src/minimal.qdoc | 10 | ||||
-rw-r--r-- | examples/webenginewidgets/minimal/main.cpp | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/webenginewidgets/minimal/doc/src/minimal.qdoc b/examples/webenginewidgets/minimal/doc/src/minimal.qdoc index 05ec9ee79..477ff521b 100644 --- a/examples/webenginewidgets/minimal/doc/src/minimal.qdoc +++ b/examples/webenginewidgets/minimal/doc/src/minimal.qdoc @@ -42,8 +42,14 @@ \section1 The Code - In the \c main function we first set the Qt::AA_EnableHighDpiScaling. - This lets the web view automatically scale on high-dpi displays. + In the \c main function we first set the + \l{QCoreApplication::organizationName} property. This affects the locations + where Qt WebEngine stores persistent and cached data (see also + \l{QWebEngineProfile::cachePath} and + \l{QWebEngineProfile::persistentStoragePath}). + + We also set the Qt::AA_EnableHighDpiScaling attribute. This lets the web + view automatically scale on high-dpi displays. Next, we instantiate a QApplication and a QWebEngineView. The URL to load is taken from the command-line in \c commandLineUrlArgument and diff --git a/examples/webenginewidgets/minimal/main.cpp b/examples/webenginewidgets/minimal/main.cpp index f58e4d54a..b31382ad5 100644 --- a/examples/webenginewidgets/minimal/main.cpp +++ b/examples/webenginewidgets/minimal/main.cpp @@ -63,6 +63,7 @@ QUrl commandLineUrlArgument() int main(int argc, char *argv[]) { + QCoreApplication::setOrganizationName("QtExamples"); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); |