diff --git a/src/libs/vlayout/vlayoutexporter.cpp b/src/libs/vlayout/vlayoutexporter.cpp index 01a63eac2..32691e423 100644 --- a/src/libs/vlayout/vlayoutexporter.cpp +++ b/src/libs/vlayout/vlayoutexporter.cpp @@ -407,7 +407,11 @@ auto VLayoutExporter::SupportPDFConversion() -> bool auto Test = [](const QString &program) { QProcess proc; +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) proc.start(program); +#else + proc.start(program, QStringList()); +#endif const int timeout = 15000; if (proc.waitForStarted(timeout) && (proc.waitForFinished(timeout) || proc.state() == QProcess::NotRunning))