i using following code show open dialog in qt:
qstring path = qfiledialog::getopenfilename(this, tr("open config file"), qdir::rootpath(), "text files (*.txt *.csv *.*);;");
what realised dialog shows hidden files although system setting showing hidden files turned off. it's same if instantiate qfiledialog
manually , show it. couldn't find out how turn off via filter.
does know if there way achieve desired behaviour?
looks there no simple(by setting flag) solution out there. recommend use filtering described in other answer. in case might use following condition:
if(filemodel != nullptr) { qfileinfo info = filemodel->fileinfo(index0); return info.ishidden(); } return false;
Comments
Post a Comment