path: root/src
diff options
authorThiago Macieira <>2014-05-05 16:27:39 -0700
committerThe Qt Project <>2014-05-09 23:55:36 +0200
commit78e57834acc4213d0c5e3b3d9c3bdbc20c32f12a (patch)
tree79760b0d310a371c9f29695652cc979f8867ed8c /src
parentf528fff97394554ccac9c2d9ced790cc0e6e4350 (diff)
Document that env variables are preferable to cmdline options
Environment variables are passed along to child processes, command-line options aren't. Change-Id: Ia52c1d8cfeeb2f7490e73ac50b58ba07c2eebfa8 Reviewed-by: Friedemann Kleint <> Reviewed-by: Leena Miettinen <>
Diffstat (limited to 'src')
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index ab71fe9081..c87c60e842 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -466,7 +466,14 @@ static QWindowGeometrySpecification windowGeometrySpecification;
\section1 Supported Command Line Options
- All Qt programs automatically support the following command line options:
+ All Qt programs automatically support a set of command-line options that
+ allow modifying the way Qt will interact with the windowing system. Some of
+ the options are also accessible via environment variables, which are the
+ preferred form if the application can launch GUI sub-processes or other
+ applications (environment variables will be inherited by child processes).
+ When in doubt, use the environment variables.
+ The options currently supported are the following:
\li \c{-platform} \e {platformName[:options]}, specifies the