Fix deprecation warning.

'start' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead.
This commit is contained in:
Roman Telezhynskyi 2023-09-21 18:47:32 +03:00
parent b12124603e
commit c9084d2039

View File

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