27 QQmlExpression(QQmlContext *, QObject *,
const QString &, QObject * =
nullptr);
28 explicit QQmlExpression(
const QQmlScriptString &, QQmlContext * =
nullptr, QObject * =
nullptr, QObject * =
nullptr);
29 ~QQmlExpression() override;
31 QQmlEngine *engine()
const;
32 QQmlContext *context()
const;
34 QString expression()
const;
35 void setExpression(
const QString &);
37 bool notifyOnValueChanged()
const;
38 void setNotifyOnValueChanged(
bool);
40 QString sourceFile()
const;
41 int lineNumber()
const;
42 int columnNumber()
const;
43 void setSourceLocation(
const QString &fileName,
int line,
int column = 0);
45 QObject *scopeObject()
const;
47 bool hasError()
const;
49 QQmlError error()
const;
51 QVariant evaluate(
bool *valueIsUndefined =
nullptr);
57 QQmlExpression(QQmlExpressionPrivate &dd, QObject *parent);
59 Q_DISABLE_COPY(QQmlExpression)
60 Q_DECLARE_PRIVATE(QQmlExpression)
61 friend class QQmlDebugger;
62 friend class QQmlContext;