PDA

View Full Version : create symbolic link with Qt4



alan
26th March 2008, 20:53
Hi,

appologies for the question, but I could not found a solution even asking big 'G'. (read, for me now it appears not to be possible...)

Is it possible to create a symbolic link (ext3 fs) from within Qt4, resp. with Qt4 classes/functions, QFile/QDir or alike?

Thanks for your answers,
Helge

yogeshm02
27th March 2008, 05:30
What about

bool QFile::link ( const QString & linkName )and

bool QFile: link ( const QString & fileName, const QString & linkName )

alan
27th March 2008, 17:11
Aaarrgghhh !

Indeed, that easy! I should have spotted this myself.

Probably concentrated too much on the 'symbolic' part.
Found even the function for gtk+.
And made an error when searching in Qt Assistant:
I searched for 'symbolic' in the 'Index' tab (no results) and not the 'Search' tab: my bad.

Thank you very much!

Helge