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 Types

Public Functions

Additional Inherited Members


Detailed Description

The QxtCsvModel class provides a QAbstractTableModel for CSV Files


Member Type Documentation

enum QxtCsvModel::QuoteOption
flags QxtCsvModel::QuoteMode

The QuoteMode type is a typedef for QFlags<QuoteOption>. It stores an OR combination of QuoteOption values.


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

QuoteMode QxtCsvModel::quoteMode () const

See also setQuoteMode().

void QxtCsvModel::setQuoteMode ( QuoteMode mode )

See also quoteMode().

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

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

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

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


Copyright © 2007-2010 Qxt Foundation
Qxt 0.7.0