diff options
| author | Oliver Wolff <oliver.wolff@qt.io> | 2024-08-01 13:24:09 +0200 |
|---|---|---|
| committer | Oliver Wolff <oliver.wolff@qt.io> | 2024-08-01 17:48:04 +0200 |
| commit | 119e7a3038e282c18ec79c87c07884036ca3362b (patch) | |
| tree | 6de0d319f2eda78ee5e21c5dcca28a97799d7c39 /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 4bc81fe5d1d1e4587075a82a45be9b34825b5233 (diff) | |
QCommandlineParser doc: Mention QT_COMMAND_LINE_PARSER_NO_GUI_MESSAGE_BOXES
Pick-to: 6.8 6.7 6.5
Change-Id: I2c3dd6000a29e23f256480076f4f832765af08c9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
| -rw-r--r-- | src/corelib/tools/qcommandlineparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qcommandlineparser.cpp b/src/corelib/tools/qcommandlineparser.cpp index 2880eedf77a..863cf0ca6ce 100644 --- a/src/corelib/tools/qcommandlineparser.cpp +++ b/src/corelib/tools/qcommandlineparser.cpp @@ -196,7 +196,8 @@ QStringList QCommandLineParserPrivate::aliases(const QString &optionName) const since the output is either discarded or not accessible. On Windows, QCommandLineParser uses message boxes to display usage information - and errors if no console window can be obtained. + and errors if no console window can be obtained. These message boxes can be omitted by setting + the \c QT_COMMAND_LINE_PARSER_NO_GUI_MESSAGE_BOXES environment variable. For other platforms, it is recommended to display help texts and error messages using a QMessageBox. To preserve the formatting of the help text, rich text |
