|
|
On piÄtek 07 styczeÅ 2005 06:18 pm, Andrà Somers wrote:
> On Friday 07 January 2005 16:23, Kuba Ober wrote:
> > > Does anyone have any ideas on how to create file shortcuts in QT on
> > > Windows?
> >
> > There's no such functionality in Qt, since it would be very non-portable.
> > Use the native winapi.
>
> The filesystems I use in linux support the notion of links too (ln -s), so
> maybe it's not too far-fetched to create a Qt-ish wrapper. The concepts
> seem to be reasonably comparable at first sight.
Unixish filesystems do, and there's posix api for that for a reason. A Qt
wrapper over such a trivial api is not really necessary IMHO.
The shortcuts on Windows are recognized only by the Explorer shell and by
whatever apps that have been programmed to recognize those.
The shortcuts are not links, they are regular files with ".lnk" extension. The
filesystem knows nothing about any special behaviour of shortcuts.
IIRC, maybe ntfs on XP/2000 introduces the notion of a hard link (not a
symbolic link, though). But that's a real hard link, not a shortcut.
You may want to look at boost's filesystem module documentation, it's an
eye-opener.
Kuba
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|