TTkModelIndex🌶️
- class TTkModelIndex[source]🌶️
Bases:
object
This class is used as an index into item models derived from
TTkAbstractTableModel
. The index is used by item views, delegates, and selection models to locate an item in the model.New
TTkModelIndex
objects are created by the model using theTTkAbstractTableModel
->index()
function. An invalid model index can be constructed with theTTkModelIndex
constructor.Model indexes refer to items in models, and contain all the information required to specify their locations in those models. Each index is located in a given row and column; use
row()
,column()
, anddata()
to obtain this information.To obtain a model index that refers to an existing item in a model, call
TTkAbstractTableModel
->index()
with the required row and column values.Methods🌶️