I have a problem which is quite similar to my last question Ssh command from Qt. But I cannot understand what is wrong with one of the arguments that I pass to cUrl in QProcess. The code is:
QStringList params;
const double timeout = 8.0;
params.append("'--connect-timeout " + QString("%1").arg(timeout) + "'");
params.append("-T" + obj->absoluteFilePath());
params.append("ftp://" + m_host + "/inbox" + m_logsPath + obj->name());
m_process->start("curl", params);
But it always gives me an error: curl: option --connect-timeout 8: is unknown. And again when I run it from the command line everything is fine. I understand that I have an error while passing argumnets, but I can't find it. Thanx a lot!