[Qt-interest] [SOLVED] Re: QDir Loop Problem

Aaron Lewis aaron.lewis1989 at gmail.com
Sat Apr 10 02:40:59 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/08/2010 02:12 PM, Denis Mingulov wrote:
> Hi,
> 
>>        else if(fileInfo.isDir())
>>        {
>>            qDebug() << "Looping in : " << fileInfo.absolutePath();
>>            findStringInDir(fileInfo.absolutePath());
>>        }
> 
> It is correct, absolutePath() is the same for any usual file in one folder.
> You should use fileInfo.absoluteFilePath()

Yeah , you got it Denis , i should use absoluteFilePath() , and it stops
looping at single directory.

Thanks again !

> 
> http://doc.trolltech.com/4.6/qfileinfo.html#absolutePath
> 


- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku/yRsACgkQvf41sEptMqB2eQCgpMN/S6FKHypAP/eIwhR7TrA3
ZfoAoJvU01EuGTxFk/ykGBS7Qstl3ZnL
=ivw5
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list