QModelIndex 与 QStandardItem互转

1、 QModelIndex 转换成QStandardItem

QStandardItem * item=QStandardItemModel::​itemFromIndex(const QModelIndex & index) const

2 、QStandardItem 转换成 QModelIndex

QModelIndex model = QStandardItem::​index() const

posted @ 2016-11-14 11:25  曦花  阅读(2082)  评论(0编辑  收藏  举报