From the online Qt
docs:
bool QProcess::startDetached(const QString &command)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Hence the MSVC warning, C4996 for a function that's marked as deprecated. According to the Qt docs you should be using the more extensive overload:
bool QProcess::startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory = QString(), qint64 *pid = nullptr)
and you'll have to provide the arguments parameter, even if it's an empty QStringList.