RegMe
3rd June 2016, 10:21
Hi,
I can't change the working directory using Qdir::setCurrent, it returns false
I used it with QProcess
QProcess process;
QString cloneProject;
bool cloneOk = false;
QString dir = path;
qDebug() << QDir::current();
QDir::setCurrent(dir);
QDir directory(dir);
qDebug() << QDir::current();
cloneProject = "git clone ssh://user@host:port/"+project+".git";
process.start(cloneProject);
I can't change the working directory using Qdir::setCurrent, it returns false
I used it with QProcess
QProcess process;
QString cloneProject;
bool cloneOk = false;
QString dir = path;
qDebug() << QDir::current();
QDir::setCurrent(dir);
QDir directory(dir);
qDebug() << QDir::current();
cloneProject = "git clone ssh://user@host:port/"+project+".git";
process.start(cloneProject);