7#include <QAbstractTableModel>
18 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
19 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
20 QVariant data(
const QModelIndex &index,
int role)
const override;
25 bool setData(
const QModelIndex &index,
const QVariant &value,
28 bool insertRows(
int position,
int rows,
const QModelIndex &parent = QModelIndex())
override;
29 bool insertColumns(
int position,
int columns,
const QModelIndex &parent = QModelIndex())
override;
30 bool removeRows(
int position,
int rows,
const QModelIndex &parent = QModelIndex())
override;
31 bool removeColumns(
int position,
int columns,
const QModelIndex &parent = QModelIndex())
override;
34 QList<QStringList> rowList;
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of items in the row list as the number of rows in the model.
bool removeColumns(int position, int columns, const QModelIndex &parent=QModelIndex()) override
Removes a number of columns from the model at the specified position.
bool insertRows(int position, int rows, const QModelIndex &parent=QModelIndex()) override
Inserts a number of rows into the model at the specified position.
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Changes an item in the model, but only if the following conditions are met:
bool removeRows(int position, int rows, const QModelIndex &parent=QModelIndex()) override
Removes a number of rows from the model at the specified position.
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns an appropriate value for the item's flags.
bool insertColumns(int position, int columns, const QModelIndex &parent=QModelIndex()) override
Inserts a number of columns into the model at the specified position.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Returns the appropriate header string depending on the orientation of the header and the section.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of items in the first list item as the number of columns in the model.
QVariant data(const QModelIndex &index, int role) const override
Returns an appropriate value for the requested data.
int main(int argc, char *argv[])
[ctor_close]