|
|
| DAAbstractCacheWindowTableModel (QObject *parent=nullptr) |
| |
| virtual void | setCacheWindowStartRow (int startRow) |
| |
|
int | getCacheWindowStartRow () const |
| |
|
void | setCacheWindowSize (int s) |
| |
|
int | getCacheWindowSize () const |
| |
|
virtual Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
|
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
|
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
|
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
|
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| |
|
virtual Qt::ItemFlags | actualFlags (int actualRow, int actualColumn) const |
| |
|
virtual int | actualRowCount () const =0 |
| |
| virtual QVariant | actualHeaderData (int actualSection, Qt::Orientation orientation, int role=Qt::DisplayRole) const =0 |
| |
|
virtual QVariant | actualData (int actualRow, int actualColumn, int role=Qt::DisplayRole) const =0 |
| |
|
virtual bool | setActualData (int actualRow, int actualColumn, const QVariant &value, int role=Qt::EditRole) |
| |
|
void | notifyRowChanged (int row) |
| |
|
void | notifyColumnChanged (int col) |
| |
|
void | notifyDataChanged (int row, int col) |
| |
|
void | notifyDataChanged (int rowStart, int colStart, int rowEnd, int colEnd) |
| |
|
void | notifyRowsRemoved (const QList< int > &r) |
| |
|
void | notifyRowsInserted (const QList< int > &r) |
| |
|
void | notifyColumnsRemoved (const QList< int > &c) |
| |
|
void | notifyColumnsInserted (const QList< int > &c) |
| |
这是一个有缓存窗的模型,模型的显示行数固定在缓存窗的大小,这个模型适合超多行数据的显示
- 注解
- DAAbstractCacheWindowTableModel不需要重写
- 参见
- rowCount
-
headerData
-
data 函数 但你要重写
-
actualRowCount
-
actualHeaderData
-
actualData 函数