diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-27 10:07:47 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-31 09:02:20 +0000 |
commit | 6213acf9ef440b0adf749c08ead6d55b2ae20abf (patch) | |
tree | d64775b0445108fb67115d94865b7930fb94834a | |
parent | f90f26c8f5610048b7c91776099e419452d9970a (diff) |
qtdiag: Output environment variables starting with 'Q'.
Obtain information on high DPI scaling and other variables
influencing Qt.
Change-Id: Ia3eb5eb1fb34276ff15a6dea49b2120bfcb107b7
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
-rw-r--r-- | src/qtdiag/qtdiag.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp index d06a1e718..39157c520 100644 --- a/src/qtdiag/qtdiag.cpp +++ b/src/qtdiag/qtdiag.cpp @@ -54,6 +54,7 @@ #include <QtCore/QVariant> #include <QtCore/QSysInfo> #include <QtCore/QLibraryInfo> +#include <QtCore/QProcessEnvironment> #include <QtCore/QTextStream> #include <QtCore/QStandardPaths> #include <QtCore/QDir> @@ -245,6 +246,13 @@ QString qtDiag(unsigned flags) #endif str << '\n'; + const QProcessEnvironment systemEnvironment = QProcessEnvironment::systemEnvironment(); + str << "\nEnvironment:\n"; + foreach (const QString &key, systemEnvironment.keys()) { + if (key.startsWith(QLatin1Char('Q'))) + str << " " << key << "=\"" << systemEnvironment.value(key) << "\"\n"; + } + str << "\nLibrary info:\n"; DUMP_LIBRARYPATH(str, PrefixPath) DUMP_LIBRARYPATH(str, DocumentationPath) |