6 #ifndef RAVEN_QT_CSVMODELWRITER_H 7 #define RAVEN_QT_CSVMODELWRITER_H 13 class QAbstractItemModel;
27 void addColumn(
const QString &title,
int column,
int role=Qt::EditRole);
36 const QAbstractItemModel *
model;
47 #endif // RAVEN_QT_CSVMODELWRITER_H
void addColumn(const QString &title, int column, int role=Qt::EditRole)
Export a Qt table model to a CSV file.
const QAbstractItemModel * model
CSVModelWriter(const QString &filename, QObject *parent=0)
void setModel(const QAbstractItemModel *model)
bool write()
Perform export of the model to CSV.