Class for storing the table information.
|
__init__(self,
master)
Create a DataModel instance |
|
|
int
|
rowCount(self,
parent=QtCore.QModelIndex())
Returns number of rows |
|
|
int
|
columnCount(self,
parent=QtCore.QModelIndex())
Returns number of columns |
|
|
|
setData(self,
data_list,
headers)
Sets the internal data list to the specified list. |
|
|
|
data(self,
index,
role=Qt.DisplayRole)
Given a cell index, returns the data that should be displayed in that
cell. |
|
|
|
headerData(self,
section,
orientation,
role)
Returns the string that should be displayed in the specified header
cell. |
|
|
|
sort(self,
Ncol,
order)
Sort table by given column number. |
|
|