Qt 5.10 Book Examples
Public Member Functions | List of all members
TableModel Class Reference
Inheritance diagram for TableModel:

Public Member Functions

 TableModel (int nRows, int nColumns, QObject *pobj=0)
 
QVariant data (const QModelIndex &index, int nRole) const
 
bool setData (const QModelIndex &index, const QVariant &value, int nRole)
 
int rowCount (const QModelIndex &) const
 
int columnCount (const QModelIndex &) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 

Detailed Description

Definition at line 14 of file main.cpp.

Constructor & Destructor Documentation

◆ TableModel()

TableModel::TableModel ( int  nRows,
int  nColumns,
QObject *  pobj = 0 
)
inline

Definition at line 21 of file main.cpp.

Member Function Documentation

◆ columnCount()

int TableModel::columnCount ( const QModelIndex &  ) const
inline

Definition at line 58 of file main.cpp.

◆ data()

QVariant TableModel::data ( const QModelIndex &  index,
int  nRole 
) const
inline

Definition at line 28 of file main.cpp.

◆ flags()

Qt::ItemFlags TableModel::flags ( const QModelIndex &  index) const
inline

Definition at line 63 of file main.cpp.

◆ rowCount()

int TableModel::rowCount ( const QModelIndex &  ) const
inline

Definition at line 53 of file main.cpp.

◆ setData()

bool TableModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  nRole 
)
inline

Definition at line 40 of file main.cpp.


The documentation for this class was generated from the following file: