[Qt-interest] QDir::entryList(const QStringList & nameFilters, Filters filters = NoFilter, SortFlags sort = NoSort) method

Ahmed Khaled ahmed_khaled_omer at yahoo.com
Tue Apr 28 09:32:57 CEST 2009


hello:

i wonder if there any way to filter files that doesn't have extension using the QDir::entryList( const QStringList & nameFilters, Filters filters= NoFilter, SortFlags sort= NoSort ) const
i  am dealing with medical images(Dicom) that can be written as (1.dcm or 1 only ) and some times there is another file in the same folder that i am not interested in like*.ini files and the *.cng files and so on.

illustration:
QStringList filters;
 QStringList files;
filters<<"*";// this filter returns all files in aGiven folder what i want is to get the dcm files and the file with no extension only as i said bfore
(files) << (QDir(folders[j])).entryList( filters,QDir::Files, QDir::Name );

and thanks for your interset
best regards


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090428/ac1e6307/attachment.html 


More information about the Qt-interest-old mailing list