diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2026-03-17 17:06:23 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2026-03-19 06:15:22 +0000 |
| commit | c74cca8921d0c723120e3cb4219af04ae999c466 (patch) | |
| tree | 723fab9a4b65dc1d59a9bc2083e2891d2c01c7e8 | |
| parent | ba3b524157b2230f001a3b355fe7dbeb633a75c2 (diff) | |
qmlClearTypeRegistrations docs: Mark warning as such
Mark the warning that all engines must be deleted as an actual warning.
Pick-to: 6.8 6.5
Change-Id: I602b4a5bef13e3e96d10a2ad34b827431bd2a7c2
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
(cherry picked from commit 2d105c2a230d56e9f8f085c7c01b18d37917cb59)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 51b0ef089c06434b790fbdaa2f64464ab3b735de)
| -rw-r--r-- | src/qml/qml/qqml.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index 9ed1c9477b..82d1c5597d 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -303,10 +303,12 @@ int qmlRegisterUncreatableMetaObject(const QMetaObject &staticMetaObject, Clears all stored type registrations, such as those produced with \l qmlRegisterType(). + \warning Do not call this function while a QQmlEngine exists or behavior will be undefined. - Any existing QQmlEngines must be deleted before calling this function. This function - only affects the application global cache. Delete the QQmlEngine to clear all cached - data relating to that engine. + Any existing QQmlEngines must be deleted before calling this function. + + This function only affects the application global cache. Delete the QQmlEngine to clear + all cached data relating to that engine. */ void qmlClearTypeRegistrations() // Declared in qqml.h { |
