Home · All Classes · All Functions · Overviews

QDeclarativeError Class Reference
[QtDeclarative module]

The QDeclarativeError class encapsulates a QML error More...

 #include <QDeclarativeError>

This class was introduced in Qt 4.7.


Public Functions

QDeclarativeError ()
QDeclarativeError ( const QDeclarativeError & other )
int column () const
QString description () const
bool isValid () const
int line () const
void setColumn ( int column )
void setDescription ( const QString & description )
void setLine ( int line )
void setUrl ( const QUrl & url )
QString toString () const
QUrl url () const
QDeclarativeError & operator= ( const QDeclarativeError & other )

Related Non-Members

QDebug operator<< ( QDebug debug, const QDeclarativeError & error )

Detailed Description

The QDeclarativeError class encapsulates a QML error


Member Function Documentation

QDeclarativeError::QDeclarativeError ()

Create an empty error object.

QDeclarativeError::QDeclarativeError ( const QDeclarativeError & other )

Create a copy of other.

int QDeclarativeError::column () const

Return the error column number.

See also setColumn().

QString QDeclarativeError::description () const

Return the error description.

See also setDescription().

bool QDeclarativeError::isValid () const

Return true if this error is valid, otherwise false.

int QDeclarativeError::line () const

Return the error line number.

See also setLine().

void QDeclarativeError::setColumn ( int column )

Set the error column number.

See also column().

void QDeclarativeError::setDescription ( const QString & description )

Set the error description.

See also description().

void QDeclarativeError::setLine ( int line )

Set the error line number.

See also line().

void QDeclarativeError::setUrl ( const QUrl & url )

Set the url for the file that caused this error.

See also url().

QString QDeclarativeError::toString () const

Return the error as a human readable string.

QUrl QDeclarativeError::url () const

Return the url for the file that caused this error.

See also setUrl().

QDeclarativeError & QDeclarativeError::operator= ( const QDeclarativeError & other )

Assign other to this error object.


Related Non-Members

QDebug operator<< ( QDebug debug, const QDeclarativeError & error )

Output a human readable version of error to debug.


Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0