Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I get QFileSystemModel to display directories beginning with a "." (dotfiles) e.g. /users/paulsmith/.dirName?
I am working in Unix and I want QFileSystemModel to display directories beginning with a "." (dotfiles) e.g. /users/paulsmith/.dirName as well as ordinary directories.
QString sPath = "/users/paulsmith/";
dirModel = new QFileSystemModel(this);
...but the last line above doesn't do what I want to achieve and I don't know what else will. Does anybody know how?
Thank you that has worked well! The only problem is that now no files are being displayed. Do you know how to fix this but still keep the dotfiles?
@gshannon154 Yes. Just add