diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-30 05:26:55 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-30 05:27:24 (GMT) |
commit | 77cddec6ea642b073d1d9c017c865e740c0c60bc (patch) | |
tree | 6d14cf0504e956777a7016aa5ae05998ccd1ee7d /src/declarative/qml/qdeclarativecomponent.cpp | |
parent | e900d3b5c026ede908a5b8623f044fff6421fdeb (diff) | |
download | Qt-77cddec6ea642b073d1d9c017c865e740c0c60bc.zip Qt-77cddec6ea642b073d1d9c017c865e740c0c60bc.tar.gz Qt-77cddec6ea642b073d1d9c017c865e740c0c60bc.tar.bz2 |
Doc fixes
Diffstat (limited to 'src/declarative/qml/qdeclarativecomponent.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index 6ebf470..3ca0707 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -547,7 +547,11 @@ QDeclarativeComponent::QDeclarativeComponent(QDeclarativeComponentPrivate &dd, Q \qmlmethod object Component::createObject() Returns an object instance from this component, or null if object creation fails. - The object will be created in the same context as the component was created in. + The object will be created in the same context as the one in which the component + was created. + + Note that if the returned object is to be displayed, its \c parent must be set to + an existing item in a scene, or else the object will not be visible. */ /*! |