Home · All Classes · Modules |
The QScriptSyntaxCheckResult class provides the result of a script syntax check. More...
The QScriptSyntaxCheckResult class provides the result of a script syntax check.
QScriptSyntaxCheckResult is returned by QScriptEngine.checkSyntax() to provide information about the syntactical (in)correctness of a script.
This enum specifies the state of a syntax check.
Constant | Value | Description |
---|---|---|
QScriptSyntaxCheckResult.Error | 0 | The program contains a syntax error. |
QScriptSyntaxCheckResult.Intermediate | 1 | The program is incomplete. |
QScriptSyntaxCheckResult.Valid | 2 | The program is a syntactically correct Qt Script program. |
Constructs a new QScriptSyntaxCheckResult from the other result.
Returns the error column number of this QScriptSyntaxCheckResult, or -1 if there is no error.
See also state() and errorLineNumber().
Returns the error line number of this QScriptSyntaxCheckResult, or -1 if there is no error.
See also state() and errorMessage().
Returns the error message of this QScriptSyntaxCheckResult, or an empty string if there is no error.
See also state() and errorLineNumber().
Returns the state of this QScriptSyntaxCheckResult.
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |