[Interest] QDir::EntryList
Michael Sué
sue at sf.mpg.de
Fri Jul 24 13:15:42 CEST 2015
Hi,
You will have to use something like this:
QDir::Files|QDir::Dirs|QDir::NoDotAndDotDot
- Michael.
> -----Original Message-----
> From: interest-bounces+sue=sf.mpg.de at qt-project.org [mailto:interest-
> bounces+sue=sf.mpg.de at qt-project.org] On Behalf Of Graham Labdon
> Sent: Friday, July 24, 2015 11:41 AM
> To: Interest at qt-project.org
> Subject: [Interest] QDir::EntryList
>
> Hi
> If I want to get a list of all files and sub folders in a folder, but excluding dot
> and dotdot I thought that this should do the trick
>
> QDir myDir("somepath");
> QStringList files = myDir.entryList(QDir::NoDotAndDotDot);
>
> However, this seems to return no strings
> Removing the filter returns the list as expected but including dot and dotdot
>
> Is this the correct behaviour or have I misunderstood something?
>
> Thanks
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list