Which class allows the analysis of files and folders present on the hard drive and their return in the form of a ready-to-use model?
-
wrote on 28 Dec 2021, 21:39 last edited by
Good evening to the whole community, I would like to know which class present in the qt6 framework allows the analysis of files and folders present on the hard disk in order to use it in the form of a model. In fact, I need it to work using the MVC architecture that I am currently learning. I was told to use "QDirModel" for this, but I cannot find the specification for this class in the documentation and when I include it in my project file, it is said to be nonexistent. I don't know if it exists, so I'm asking if there is a similar class or are the functionality of this class included in other classes I need to include.
Thank you for your attention!
-
Good evening to the whole community, I would like to know which class present in the qt6 framework allows the analysis of files and folders present on the hard disk in order to use it in the form of a model. In fact, I need it to work using the MVC architecture that I am currently learning. I was told to use "QDirModel" for this, but I cannot find the specification for this class in the documentation and when I include it in my project file, it is said to be nonexistent. I don't know if it exists, so I'm asking if there is a similar class or are the functionality of this class included in other classes I need to include.
Thank you for your attention!
wrote on 28 Dec 2021, 23:18 last edited byHi @gouneken ,
What you are looking for is QFileSystemModel
QDirModel was already obsolete in Qt5 and has been removed in Qt6.
-
Hi @gouneken ,
What you are looking for is QFileSystemModel
QDirModel was already obsolete in Qt5 and has been removed in Qt6.
2/3