查看完整版本: [-- QModelIndex::QModelIndex()怎么解释? --]

QTCN开发网 -> Qt基础编程 -> QModelIndex::QModelIndex()怎么解释? [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

ceiwei 2017-02-09 16:59

QModelIndex::QModelIndex()怎么解释?


QModelIndex::QModelIndex()
Creates a new empty model index. This type of model index is used to indicate that the position in the model is invalid.
See also isValid() and QAbstractItemModel.


是创造一个空的模型索引?被用于指出模型中无效的索引在哪个位置?

steinlee 2017-02-09 19:12
显然是个空index,不指向任何地方, 就是无效的(invalid)


查看完整版本: [-- QModelIndex::QModelIndex()怎么解释? --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled