QSortFilterProxyModel
最后更新于:2022-04-02 02:11:48
[TOC]
## 概述
对视图的 Item 进行排序
## 示例
```
QTreeView *treeView = new QTreeView;
MyItemModel *sourceModel = new MyItemModel(this);
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
proxyModel->setSourceModel(sourceModel);
treeView->setModel(proxyModel);
```
';