QSortFilterProxyModel数据统计

loong460 2014-12-08 03:50:35
经过QSortFilterProxyModel过滤后的数据怎么访问?
比如说,源Model中有500条数据,使用QSortFilterProxyModel过滤后,我怎么能够知道经过过滤后还剩余多少条数据?怎么才能访问过滤后的结果数据呢?
谢谢!
...全文
263 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
loong460 2015-02-28
  • 打赏
  • 举报
回复
谢谢,已解决。
蜗牛sf 2014-12-08
  • 打赏
  • 举报
回复
QModelIndex QSortFilterProxyModel::mapToSource ( const QModelIndex & proxyIndex ) const [virtual]

Reimplemented from QAbstractProxyModel::mapToSource().

Returns the source model index corresponding to the given proxyIndex from the sorting filter model.
QModelIndex QSortFilterProxyModel::mapFromSource ( const QModelIndex & sourceIndex ) const [virtual]

Reimplemented from QAbstractProxyModel::mapFromSource().

Returns the model index in the QSortFilterProxyModel given the sourceIndex from the source model.

16,199

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧