Hi,

You will have to use something like this:

QDir::Files|QDir::Dirs|QDir::NoDotAndDotDot

- Michael.

> -----Original Message-----
> From: interest-bounces+sue=sf.mpg...@qt-project.org [mailto:interest-
> bounces+sue=sf.mpg...@qt-project.org] On Behalf Of Graham Labdon
> Sent: Friday, July 24, 2015 11:41 AM
> To: Interest@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to