QModelIndex 与 QStandardItem互转

1、 QModelIndex 转换成QStandardItem

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

2 、QStandardItem 转换成 QModelIndex

QModelIndex model = QStandardItem::​index() const

原文地址:https://www.cnblogs.com/XiHua/p/6061191.html