class SelectionProxy: public QSortFilterProxyModel{public: SelectionProxy(QItemSelectionModel* selectionModel, QObject* parent = 0) :QSortFilterProxyModel(parent), m_selectionModel(selectionModel) { setSourceModel(selectionModel->model()); } // QSortFilterProxyModel interfaceprotected: bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const{ QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent); return m_selectionModel->isSelected(index); }private: QItemSelectionModel* m_selectionModel;};......report.dataManager()->addModel("test",new SelectionProxy(ui->tableWidget->selectionModel()),true);