Hi,
I can't change the working directory using Qdir::setCurrent, it returns false
I used it with QProcess
Qt Code:To copy to clipboard, switch view to plain text mode
Hi,
I can't change the working directory using Qdir::setCurrent, it returns false
I used it with QProcess
Qt Code:To copy to clipboard, switch view to plain text mode
Last edited by RegMe; 3rd June 2016 at 10:26.
Is "path" a valid directory?
Also, why change your program's current working directory if you want to change the one of the QProcess?
Cheers,
_
Qt Code:
qDebug() << directory; cloneProject = "git clone ssh://user@host:port/"+project+".git"; process.start(cloneProject);To copy to clipboard, switch view to plain text mode
Console out :
QDir( "/home/.../key/bin" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
QDir( "/home/.../Plg_mgm" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
QDir( "/home/.../key/bin" , nameFilters = { "*" }, QDir::SortFlags( Name | IgnoreCase ) , QDir::Filters( Dirs|Files|Drives|AllEntries ) )
Added after 7 minutes:
Thanks, the problem is solved
Problem was in the path creation
Last edited by RegMe; 3rd June 2016 at 11:01.
Bookmarks