[Qt-interest] HOWTO create a symlink with Qt ?
Dan White
ygor at comcast.net
Thu Dec 3 18:03:58 CET 2009
http://doc.trolltech.com/4.6/qfile.html#link
"Creates a link named linkName that points to the file currently specified by fileName(). What a link is depends on the underlying filesystem (be it a shortcut on Windows or a symbolic link on Unix). Returns true if successful; otherwise returns false."
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- Castagne Nicolas <nicolascastagne at yahoo.fr> wrote:
> Hi folks,
>
> Is it possible to create a symlink (or "alias" on the mac, or "shortcut" on windows) using Qt ?
>
> QFile, QFileInfo and QDir do have methods to deal with existing symlinks (eg : get the target file), but I did not find a method to create a symlink, though I browsed the doc quite extensively.
>
> Thanks much !!!
> Cheers,
> Nicolas
>
>
>
More information about the Qt-interest-old
mailing list