As the title says, does anyone know if there is a easy way to create a symlink to a directory with QT 4.2?
Fore files there is QFile::link(...) but I couldn't find anything for QDir.
It's giving me a headeach...:p
Thanks.
Printable View
As the title says, does anyone know if there is a easy way to create a symlink to a directory with QT 4.2?
Fore files there is QFile::link(...) but I couldn't find anything for QDir.
It's giving me a headeach...:p
Thanks.
Hello,
Well, the QFile::link() method works fine for both files or directories !
Just tried this for example, /home/gfy is my home directory
QFile::link("/home/gfy", "/tmp/mylink");
It creates a link in /tmp, called mylink, and it points to /home/gfy :)
It works, thanks. But not on windows? :(
Well, I don't know, because I was at work, and I have only Debian there...
Maybe it doesn't work, I'll try it tonight