IvanPinezhaninov / QDbf

QDbf - Qt DBF library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QDbf - Qt DBF library

Linux Build Status Windows Build Status LGPL v2.1 License

Example:

#include "qdbftable.h"
#include "qdbfrecord.h"

QDbf::QDbfTable table;
if (!table.open(filePath)) {
    qDebug() << "file open error";
    return;
}

while (table.next()) {
    QString output;
    QDbf::QDbfRecord record = table.record(); 
    for (int i = 0; i < record.count(); ++i) {
        output.append(record.fieldName(i));
        output.append(QLatin1String(": "));
        output.append(record.value(i).toString().trimmed());
        output.append(QLatin1String("; "));
    } 
    qDebug() << output;
}

table.close();

About

QDbf - Qt DBF library

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 81.1%Language:QMake 8.4%Language:CMake 5.2%Language:QML 3.1%Language:C 2.1%