What are the alternatives to QProcess::startDetached() and QProcess::start() to start an external application as they are marked deprecated in qt5?
CodePudding user response:
Only some overloads of the start() and startDetached() method are deprecated like:
void start(const QString &command, QIODevice::OpenMode mode = ReadWrite)bool startDetached(const QString &command)
But the others are still available:
void QProcess::start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode = ReadWrite)void QProcess::start(QIODevice::OpenMode mode = ReadWrite)bool QProcess::startDetached(qint64 *pid = nullptr)bool QProcess::startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory = QString(), qint64 *pid = nullptr)
