Obsolete Members for QModelIndex

以下成員源於類 QModelIndex 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QModelIndex child (int row , int column ) const

成員函數文檔編製

QModelIndex QModelIndex:: child ( int row , int column ) const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QAbstractItemModel::index () 代替。

Returns the child of the model index that is stored in the given row and column .

注意: This function does not work for an invalid model index which is often used as the root index.

另請參閱 parent () 和 sibling ().