Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

How do i code this right (Linux Only)

$
0
0
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. :(

Viewing all articles
Browse latest Browse all 18427

Trending Articles