[Qt-interest] Symbolic link real value?

Lukas Lipavsky llipavsky at suse.cz
Tue Jul 28 13:40:25 CEST 2009


Hi,

is there any way to get the path symlink (in linux) is pointing to? But
I need the real value - e.g. '../../dir/file'

All I found so far was QFileInfo::symLinkTarget() but it returns
*absolute* path, which is useless for me.

Is there any way to get this information from the Qt library (better
than calling ls)?

Best regards,

-- 
Lukas Lipavsky, QA Developer

GPG Key ID: FF55774A
Key fingerprint = 5BEB 6AF2 9653 638E EC0E  7E73 9A11 2BC5 FF55 774A
---------------------------------------------------
SUSE LINUX, s.r.o.        e-mail: llipavsky at suse.cz
Lihovarska 1060/12        tel: +420 284 028 969
190 00 Prague 9           
Czech Republic            
---------------------------------------------------




More information about the Qt-interest-old mailing list