QtHPConnect/datamodel.h
2019-09-15 17:23:44 +02:00

18 lines
488 B
C++

#ifndef DATAMODEL_H
#define DATAMODEL_H
#include <QAbstractTableModel>
#include <QString>
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