5#ifndef BITCOIN_QT_CSVMODELWRITER_H
6#define BITCOIN_QT_CSVMODELWRITER_H
12class QAbstractItemModel;
26 void addColumn(
const QString &title,
int column,
int role=Qt::EditRole);
35 const QAbstractItemModel*
model{
nullptr};
Export a Qt table model to a CSV file.
CSVModelWriter(const QString &filename, QObject *parent=nullptr)
bool write()
Perform export of the model to CSV.
void setModel(const QAbstractItemModel *model)
void addColumn(const QString &title, int column, int role=Qt::EditRole)
const QAbstractItemModel * model