26 QQmlExpression(QQmlContext *, QObject *,
const QString &, QObject * =
nullptr);
27 explicit QQmlExpression(
const QQmlScriptString &, QQmlContext * =
nullptr, QObject * =
nullptr, QObject * =
nullptr);
28 ~QQmlExpression() override;
30 QQmlEngine *engine()
const;
31 QQmlContext *context()
const;
33 QString expression()
const;
34 void setExpression(
const QString &);
36 bool notifyOnValueChanged()
const;
37 void setNotifyOnValueChanged(
bool);
39 QString sourceFile()
const;
40 int lineNumber()
const;
41 int columnNumber()
const;
42 void setSourceLocation(
const QString &fileName,
int line,
int column = 0);
44 QObject *scopeObject()
const;
46 bool hasError()
const;
48 QQmlError error()
const;
50 QVariant evaluate(
bool *valueIsUndefined =
nullptr);
56 QQmlExpression(QQmlExpressionPrivate &dd, QObject *parent);
58 Q_DISABLE_COPY(QQmlExpression)
59 Q_DECLARE_PRIVATE(QQmlExpression)
60 friend class QQmlDebugger;
61 friend class QQmlContext;