QDir dir(”~/.MyProject”);
if (!dir.exists()) {
dir.mkpath(”~/.MyProject”);
}
Doesn’t Work or
QDir dir(”$HOME/.MyProject”);
if (!dir.exists()) {
dir.mkpath(”$HOME/.MyProject”);
But when i do
QDir dir(”/home/myusername/.MyProject”);
if (!dir.exists()) {
dir.mkpath(”$/home/myusername/.MyProject”);
it does work but it will only work for me and not other that i want to give my proect way to becuase it have my username not there so i can i fix it. :(
↧