diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-02-08 15:42:59 +0100 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-02-12 12:00:09 +0100 |
commit | f3281ca869420df83d618c255aa7d62e63a102d5 (patch) | |
tree | 4c990b4253313c3826dfb840cf427e8efa15b341 /src/qml/qml/qqmlengine_p.h | |
parent | 9c282fe2e90eec05e160241069c219c7f09f4078 (diff) |
Support runtime functions evaluation by index through QQmlEngine
Add execution function that can evaluate runtime functions available
in the compilation unit. Private API for now as it's unclear what would
be a comprehensive solution to support all existing use cases
Task-number: QTBUG-84368
Task-number: QTBUG-91039
Change-Id: Icf755b53484587d7983eaae4821c1aa0111d5c05
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r-- | src/qml/qml/qqmlengine_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index b7073ffcfd..4f1c5f26dd 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -300,6 +300,9 @@ public: return nullptr; } + QJSValue executeRuntimeFunction(const QUrl &url, qsizetype functionIndex, QObject *thisObject, + void **args = nullptr, int *types = nullptr); + private: class SingletonInstances : private QHash<QQmlType, QJSValue> { |