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...![]()
Thanks.
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...![]()
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
I should have RTFM!Anyway this way it works.
Qt Code:
#ifdef Q_OS_UNIX #endif #ifdef Q_OS_WIN #endifTo copy to clipboard, switch view to plain text mode
Bookmarks