QModelIndex的疑问
--------------------编程问答-------------------- 没人知道吗?自己顶! --------------------编程问答-------------------- const QAbstractItemModel * QModelIndex::model() constReturns a pointer to the model containing the item that this index refers to. --------------------编程问答--------------------
其实就是先找到这个model,之后再取index处的数据,连在一起写就成了那样。 --------------------编程问答-------------------- 个人认为QModelIndex 直接提供这个data方法完全是用来代替index.model()->data()的,大概因为用的比较多吧,至于实际的运用在于个人的喜好
补充:移动开发 , Qt