Using QFileSystemModel to display only one directory
-
09-10-2019 - |
Pergunta
Is it possible to use QFileSystemModel
to list only one directory contents instead of all drives in my computer (in Windows)?
Solução
That would be a function of your view, not your model:
http://doc.trolltech.com/latest/qabstractitemview.html#setRootIndex
Update:
No more Trolltech links, the updated link is QAbstractItemView ClassLicenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow