QtHPConnect/datamodel.h
2019-02-10 15:43:00 +02:00

17 lines
461 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;
};
#endif // DATAMODEL_H