PDA

View Full Version : Component that lists all files/folders in a particular path.



robgeek
18th January 2020, 22:27
Hi!

I would like to create a window with a component that lists all files/folders in a particular path. Something very similar to QFileDialog. More precisely something like winrar main window. Like the picture bellow. Is there a component in qt like the one listing TPPatchTwo...(file in the picture) file?

d_stranz
19th January 2020, 01:29
Well, there are QDir, QFileInfo, QFileSystemModel, QTreeView, QTableView, and QListView. Some or all of these classes might be useful to you. A Google search for "QFileSystemModel example" will give you lots of hits.