Qt: How to add Custom 'Local Drive' row in QFileSystemModel to display Drives
I am using QFileSystemModel to represent file structure through the QTreeView. Everything works fine and it displays C:, D: etc drives in TreeView, but I need to add an additional row at the beginning of the tree. For example for now is:
After adding the row 'Local Drives' at the beginning, I wanna display it like:
@+ Local Drive
Here is the code:
@pSystemPrimaryModel = new QFileSystemModel(this);
Anyone here who can help me???