diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-01 15:28:50 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-01 17:25:23 +0000 |
commit | 7df099a644339a487a5ad681d61efb1c7ecd81f6 (patch) | |
tree | f7f39085ab4598cdbf46b8812f0c182929e66c98 /src/qml/qml/qqmlapplicationengine.cpp | |
parent | 32de8dce311ddc562f88db47149c702fe9dcc950 (diff) |
Doc: QQmlApplicationEngine::objectCreated() also signals errors
Fixes: QTBUG-73298
Change-Id: Icb872963982f32baf6e9489f43d228041bcea2b8
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlapplicationengine.cpp')
-rw-r--r-- | src/qml/qml/qqmlapplicationengine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlapplicationengine.cpp b/src/qml/qml/qqmlapplicationengine.cpp index c519429d48..1b7a433a84 100644 --- a/src/qml/qml/qqmlapplicationengine.cpp +++ b/src/qml/qml/qqmlapplicationengine.cpp @@ -250,10 +250,12 @@ QQmlApplicationEngine::~QQmlApplicationEngine() /*! Loads the root QML file located at \a url. The object tree defined by the file is created immediately for local file urls. Remote urls are loaded asynchronously, - listen to the objectCreated signal to determine when the object - tree is ready. + listen to the \l {QQmlApplicationEngine::objectCreated()}{objectCreated} signal to + determine when the object tree is ready. - If an error occurs, error messages are printed with qWarning. + If an error occurs, the \l {QQmlApplicationEngine::objectCreated()}{objectCreated} + signal is emitted with a null pointer as parameter and error messages are printed + with qWarning. */ void QQmlApplicationEngine::load(const QUrl &url) { |