![]() |
Bitcoin Core 31.0.0
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 {nullptr} |
| 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 18 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 49 of file csvmodelwriter.cpp.
Definition at line 43 of file csvmodelwriter.h.
|
private |
Definition at line 34 of file csvmodelwriter.h.
|
private |
Definition at line 35 of file csvmodelwriter.h.