I am using a Qt 4's QFileSystemModel
and QTreeView
. I am writing a Windows Explorer like file manager, and want to make a tree more similar to Windows', where tree consist some shortcut paths like Desktop, My Documents.
The only thing I want is to make a tree look like this:
- My Computer
- Desktop
- My Documents
- C:\
- D:\
- ...
I heard that it can be achieved with QAbstractProxyModel
.
Have any one used the QAbstractProxyModel
and get it working? If yes please provide any appropriate example. Thanks in advance.
This question is the same as How to add custom row in QFileSystemModel?