I have a QTreeview where I am displaying all system drives using QFileSystemModel. I just want to know which function of QSortFilterProxyModel class is used to sort the local and removable drives in system. Basically I am working on a app where I need to sort them in a order.
Here is the code:
This displays drives in a regular manner even when removable drive is connected as follows:
pSystemPrimaryModel = new QFileSystemModel(this);
// Sets the model for the view to present.
Basically I want to display it like follows:
+ New Volume(D:)
+ New Volume(E:)
+ Transcend Drive(G:)
Does QSortFilterProxyModel can help me achieve this or is there some other Qt Class?? If yes then I would appreciate if you could guide me