[Qt-interest] QDirIterator and *.lnk-files
Girish Ramakrishnan
girish at forwardbias.in
Wed Apr 29 16:07:50 CEST 2009
Iurii Gordiienko wrote:
>
> Hi
> I use QDirIterator for processing files in directory.
> But it skipped files with *.lnk extension (under Windows). These files
> are not the link-files - they are only has *.lnk extension...
> How can I inform about *.lnk files in directory?
> //--------------------------
> QDirIterator it(dir, QDir::Files|QDir::NoDotAndDotDot,
> QDirIterator::Subdirectories|QDirIterator::FollowSymlinks);
>
> while(it.hasNext())
> {
> process( it.next() );
> }
I don't have a windows machine to test, but maybe you can try with
QDir::System? Just guessing from the comment for QDir::AllEntries in
http://doc.trolltech.com/4.5/qdir.html#Filter-enum.
Girish
More information about the Qt-interest-old
mailing list