diff options
author | Ulf Hermann <[email protected]> | 2024-03-19 15:55:12 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2024-03-21 10:41:29 +0100 |
commit | eb79815fbfad7d4e7fb4be856dc0dd43be76fdb9 (patch) | |
tree | 6015c799ae4ddbc2f362322cb0c1bb5f5705d4b2 /examples/quick | |
parent | f48ada60c3d6b56881b7355a305ec3e9c00884a5 (diff) |
QmlCompiler: Do not use QQmlEngine from current QML context
We cannot be sure the current context is still alive when a function is
called. We may be left with a skeleton context that doesn't have an
engine anymore.
However, we can always query the QJSEngine given in the AOT context.
That one cannot disappear and is generally the right one for capturing
properties.
Pick-to: 6.7 6.5 6.2
Fixes: QTBUG-123395
Change-Id: I2a6c38baa159fa790f3ba2aba225fdc9cc37001e
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Olivier De Cannière <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'examples/quick')
0 files changed, 0 insertions, 0 deletions