summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-02-08 13:01:07 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-02-08 13:01:07 (GMT)
commit322fb5291f91ab389300ec5e28155bf881bcd518 (patch)
treecad093c008d0ce594c63aec31b1f57cfe201145b /src/declarative/qml
parent5f6456d420a762cf935271c9329178ad7112c4a1 (diff)
downloadQt-322fb5291f91ab389300ec5e28155bf881bcd518.zip
Qt-322fb5291f91ab389300ec5e28155bf881bcd518.tar.gz
Qt-322fb5291f91ab389300ec5e28155bf881bcd518.tar.bz2
Document QtObject
Task-number:QTBUG-6034
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlengine.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 5624da1..bb26d30 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -110,6 +110,25 @@ QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(qmlImportTrace, QML_IMPORT_TRACE)
QML_DEFINE_TYPE(Qt,4,6,QtObject,QObject)
+/*!
+ \qmlclass QtObject QObject
+ \brief The QtObject element is the most basic element in QML
+
+ The QtObject element is a non-visual element which contains only
+ the objectName property. It is useful for when you need an extremely
+ lightweight element to place your own custom properties in.
+
+ It can also be useful for C++ integration, as it is just a plain QObject. See
+ the QObject documentation for further details.
+*/
+/*!
+ \qmlproperty string QtObject::objectName
+ This property allows you to give a name to this specific object instance.
+
+ See \l{scripting.html#accessing-child-qobjects}{Accessing Child QObjects}
+ in the scripting documentation for details how objectName can be used from
+ scripts.
+*/
struct StaticQtMetaObject : public QObject
{