1#ifndef CUSTOMFILEMODEL_H
2#define CUSTOMFILEMODEL_H
5#include <QAbstractTableModel>
15 explicit CustomFileModel ( QStringList & Headers, QObject * parent =
nullptr );
17 int rowCount (
const QModelIndex & parent )
const;
18 int columnCount (
const QModelIndex & parent )
const;
19 Qt::ItemFlags
flags (
const QModelIndex & index )
const;
20 QVariant
headerData (
int section, Qt::Orientation orientation,
int role )
const;
21 QVariant
data (
const QModelIndex & index,
int role )
const;
QList< QStringList > Data
QStringList getRowFromIndex(QModelIndex &index)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QVariant data(const QModelIndex &index, int role) const
Qt::ItemFlags flags(const QModelIndex &index) const
int columnCount(const QModelIndex &parent) const
int rowCount(const QModelIndex &parent) const
CustomFileModel(QStringList &Headers, QObject *parent=nullptr)
Including Schema Editor.