I'm setting my QFileSystemModel with following filters:
QDir::Filters( Dirs|AllDirs|Files|Drives|NoDotAndDotDot|AllEntries )
In my proxy model, I am using a regular expression to filter files by name:
proxy_model_->setFilterRegExp(".*\\.(cpp$|cxx$|c$|hpp$|h$)");
....and then where my model_
is a QFileSystemModel, I have the line:
model_->setNameFilters(QStringList(proxy->filterRegExp().pattern()));
...yet files displayed are greyed out. Why, and how to make them "normal".