Home · Modules · Classes · Namespaces · Functions

QxtCsvModel Class Reference
[QxtCore module]

The QxtCsvModel class provides a QAbstractTableModel for CSV Files More...

    #include <QxtCsvModel>

Inherits QAbstractTableModel.

Public Functions

Additional Inherited Members


Detailed Description

The QxtCsvModel class provides a QAbstractTableModel for CSV Files


Member Function Documentation

QxtCsvModel::QxtCsvModel ( QObject * parent = 0 )

Constructs a new QxtCsvModel with parent

QxtCsvModel::QxtCsvModel ( QIODevice * file, QObject * parent = 0, bool withHeader = false, QChar separator = ',' )

constructs a QxtCsvModel from a QIODevice file as source withHeader specifies if the data on the device contains a header or not. separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'

QxtCsvModel::QxtCsvModel ( const QString filename, QObject * parent = 0, bool withHeader = false, QChar separator = ',' )

constructs a QxtCsvModel from filename as source withHeader specifies if the data in the file contains a header or not. separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'

QxtCsvModel::~QxtCsvModel ()

Destructor

void QxtCsvModel::setSource ( QIODevice * file, bool withHeader = false, QChar separator = ',' )

reads the cvs data from file withHeader specifies if the data on the device contains a header or not. separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'

void QxtCsvModel::setSource ( const QString filename, bool withHeader = false, QChar separator = ',' )

reads the cvs data from filename withHeader specifies if the data in the file contains a header or not. separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'

void QxtCsvModel::toCSV ( QIODevice * file, bool withHeader = false, QChar separator = ',' )

writes the cvs data to file withHeader specifies if to write the header or not separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'

void QxtCsvModel::toCSV ( const QString filename, bool withHeader = false, QChar separator = ',' )

writes the cvs data to filename withHeader specifies if to write the header or not separator is the separator to use for the columns. most widely used separators are ',' '\t' ';'


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.1