PDA

View Full Version : Directory View



kamlmish
22nd December 2010, 09:43
Hi
I have a small query where I need to display a filesystem , showing the subdirectories , without showing the contents of the directory and the subdirectories.

eg


Home
Documents
A.doc
B.doc
C.doc
Pictures
abc.jpg
def.png
Music
bryan.mp3
ghulam.mp3


In the above pictures, I should be able to display the subdirectories (Documents , Pictures and Music) but the files under them should be hidden

Lykurg
22nd December 2010, 10:04
Have a look at QFileSystemModel or QDirModel and their setFilter() function.