• 3927阅读
  • 1回复

[提问]请问一下indexinQuery()是个什么函数 [复制链接]

上一主题 下一主题
离线winslx
 

只看楼主 倒序阅读 楼主  发表于: 2014-07-16
请问一下indexinQuery()是个什么函数
我在用QSqlQueryModel连接远程的数据时,不停的在调用这个函数,导致界面很卡
离线dosmlp

只看该作者 1楼 发表于: 2014-07-17
官方文档是这样说的
QModelIndex QSqlQueryModel::indexInQuery(const QModelIndex & item) const [virtual protected]
Returns the index of the value in the database result set for the given item in the model.

The return value is identical to item if no columns or rows have been inserted, removed, or moved around.

Returns an invalid model index if item is out of bounds or if item does not point to a value in the result set.
快速回复
限100 字节
 
上一个 下一个