freemind
1st December 2010, 21:14
Hi,
I'm trying to get all directories in a folder, including the hidden ones, but it seems Qt has some sort of bug when applying the filters.
QDir::Filters only_dirs (
QDir::Hidden |
QDir::AllDirs |
QDir::NoDotAndDotDot |
QDir::NoSymLinks
);
The problem is when i add the QDir::Hidden flag, it lists all the hidden files and folders and not only the folders, like i wish.
Does anybody know any workaround?
Thanks in advance.
I'm trying to get all directories in a folder, including the hidden ones, but it seems Qt has some sort of bug when applying the filters.
QDir::Filters only_dirs (
QDir::Hidden |
QDir::AllDirs |
QDir::NoDotAndDotDot |
QDir::NoSymLinks
);
The problem is when i add the QDir::Hidden flag, it lists all the hidden files and folders and not only the folders, like i wish.
Does anybody know any workaround?
Thanks in advance.