可以指定某一列排序: QTableView::sortByColumn(int column, Qt::SortOrder order) 需要注意的是指定的该列必须是数字类型,否则无法排序。 网上实现的例子(仅供参考):