Home · All Classes · Modules |
The QDeclarativeError class encapsulates a QML error. More...
The QDeclarativeError class encapsulates a QML error.
QDeclarativeError includes a textual description of the error, as well as location information (the file, line, and column). The toString() method creates a single-line, human-readable string containing all of this information, for example:
file:///home/user/test.qml:7:8: Invalid property assignment: double expected
You can use qDebug() or qWarning() to output errors to the console. This method will attempt to open the file indicated by the error and include additional contextual information.
file:///home/user/test.qml:7:8: Invalid property assignment: double expected y: "hello" ^
Creates an empty error object.
Creates a copy of other.
Returns the error column number.
See also setColumn().
Returns the error description.
See also setDescription().
Returns true if this error is valid, otherwise false.
Returns the error line number.
See also setLine().
Sets the error column number.
See also column().
Sets the error description.
See also description().
Sets the error line number.
See also line().
Sets the url for the file that caused this error.
See also url().
Returns the error as a human readable string.
Returns the url for the file that caused this error.
See also setUrl().
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |