Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[solved] problem with QStringList in a Model class?

$
0
0
I am trying to build a table model, but when compiled, the error genereated “field stepTable has incomplete type”, what does that mean? another question is that what’s the best data struct to hold a two demisional string matrix. thanks class steptablemodel : public QAbstractTableModel {     Q_OBJECT public:     explicit steptablemodel(QObject *parent = 0);     steptablemodel(QStringList tablelist, QObject *parent = 0);     int rowCount(const QModelIndex &parent) const;     int columnCount(const QModelIndex &parent) const;     QVariant data(const QModelIndex &index, int role) const;   signals:     public slots:   private:     QStringList stepTable; };

Viewing all articles
Browse latest Browse all 18427

Trending Articles