Result of my sql query is hold in QSqlQueryModel; and i simply call
mTreeView->setModel(qsqlquerymodel) to view results in treeview.
TreeView displays my table; but it is not structured (there is no node or hiyerarchical structure in view.)
I have looked around forum and understood that I have to subclass QAbstractProxyModel, and override its pure virtual methods. But i have no clue what to write in its methods.

I will be grateful for any clue about how to write a proxy to have a structured display in QTreeView using QSqlQueryModel.

Thanx in advance.