#ifndef DATAMODEL_H #define DATAMODEL_H #include #include class dataModel: public QAbstractTableModel { Q_OBJECT public: dataModel(QObject *parent); int rowCount(const QModelIndex &parent = QModelIndex()) const override ; int columnCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; ~dataModel() override; }; #endif // DATAMODEL_H