Bitcoin ABC 0.26.3
P2P Digital Currency
|
Export a Qt table model to a CSV file. More...
#include <csvmodelwriter.h>
Classes | |
struct | Column |
Public Member Functions | |
CSVModelWriter (const QString &filename, QObject *parent=nullptr) | |
void | setModel (const QAbstractItemModel *model) |
void | addColumn (const QString &title, int column, int role=Qt::EditRole) |
bool | write () |
Perform export of the model to CSV. | |
Private Attributes | |
QString | filename |
const QAbstractItemModel * | model |
QList< Column > | columns |
Export a Qt table model to a CSV file.
This is useful for analyzing or post-processing the data in a spreadsheet.
Definition at line 19 of file csvmodelwriter.h.
Definition at line 11 of file csvmodelwriter.cpp.
void CSVModelWriter::setModel | ( | const QAbstractItemModel * | model | ) |
bool CSVModelWriter::write | ( | ) |
Perform export of the model to CSV.
Definition at line 41 of file csvmodelwriter.cpp.
Definition at line 42 of file csvmodelwriter.h.
|
private |
Definition at line 34 of file csvmodelwriter.h.
|
private |
Definition at line 35 of file csvmodelwriter.h.