QCommandlineParser doc: Mention QT_COMMAND_LINE_PARSER_NO_GUI_MESSAGE_BOXES

Pick-to: 6.7 6.5
Change-Id: I2c3dd6000a29e23f256480076f4f832765af08c9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
(cherry picked from commit 119e7a3038e282c18ec79c87c07884036ca3362b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Oliver Wolff 2024-08-01 13:24:09 +02:00 committed by Qt Cherry-pick Bot
parent 2c29abc611
commit a8a866b626

View File

@ -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