16class QAbstractItemModel;
39QString
csvQuote(
const QString &value);
50bool toCSV(QAbstractItemModel *model,
const QString &filePath);
61bool toJSON(QAbstractItemModel *model,
const QString &filePath);
Free functions that serialise any QAbstractItemModel to CSV or JSON.
Definition table_export.cpp:23
bool toCSV(QAbstractItemModel *model, const QString &filePath)
Writes model to an RFC 4180 CSV file at filePath.
Definition table_export.cpp:39
QString csvQuote(const QString &value)
Returns a CSV-safe quoted field: wraps value in double-quotes if it contains a comma,...
Definition table_export.cpp:25
bool toJSON(QAbstractItemModel *model, const QString &filePath)
Writes model to a JSON file at filePath.
Definition table_export.cpp:76