The QModelIndex class is used to locate data in a data model
//在數據模型中定位數據
int QModelIndex::row() const
Returns the row this model index refers to.
//返回這個model index的row
void QAbstractItemView::edit(const QModelIndex & index)
Starts editing the item corresponding to the given index if it is editable.
//按照給定的inedx開始編輯item
QModelIndex QAbstractListModel::index(int row, int column = 0, const QModelIndex & parent = QModelIndex()) const
Reimplemented from QAbstractItemModel::index().
Returns the index of the data in row and column with parent.
//返回父級的行和列中數據的index
QModelIndex QAbstractItemView::currentIndex() const
Returns the model index of the current item.
//返回當前item的model index
QStringList QStringListModel::stringList() const
Returns the string list used by the model to store data.
//返回model使用的 來存儲數據 字符串
Qt mode&&view
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.