QModelIndex 与 QStandardItem互转

1、 QModelIndex 转换成QStandardItem

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

2 、QStandardItem 转换成 QModelIndex

QModelIndex model = QStandardItem::​index() const

posted @   曦花  阅读(2123)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示