diff --git a/src/util/cmdlineargs.cpp b/src/util/cmdlineargs.cpp index 9bed044db42..224907ca178 100644 --- a/src/util/cmdlineargs.cpp +++ b/src/util/cmdlineargs.cpp @@ -188,7 +188,11 @@ bool CmdlineArgs::parse(int& argc, char** argv) { qWarning() << parser.errorText(); } - if (parser.isSet(helpOption) || parser.isSet(QStringLiteral("help-all"))) { + if (parser.isSet(helpOption) +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + || parser.isSet(QStringLiteral("help-all")) +#endif + ) { // we need to call process here with an initialized QCoreApplication // otherwise there is no way to print the help-all information QCoreApplication coreApp(argc, argv);