QQmlError ClassThe QQmlError class encapsulates a QML error. More... #include <QQmlError> This class was introduced in Qt 5.0. Public Functions
Related Non-Members
Detailed DescriptionThe QQmlError class encapsulates a QML error. QQmlError 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" ^ Note that the QtQuick 1 version is named QDeclarativeError See also QQuickView::errors() and QQmlComponent::errors(). Member Function Documentation
|