0

I have this directory structure:

files
  |----showme
  |       |------asd.h
  |       |------homework.docx
  |       |------free games.exe
  |----my internet history
  |         |-----------dont show me

I would like it so that the QTreeView will only show the files/showme directory.
How can I do this?

this is my code:

self.model.setRootPath('H:\\files\\showme')  
self.tree = QTreeView(self)  
self.tree.resize(620,300)  
self.tree.move(0,200)  
self.tree.setModel(self.model)  

EDIT: to clarify, I want it so that the base directory will be showme

EDIT2: wrong code here, whoops!

Kozova1
  • 46
  • 8

0 Answers0