summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-05-13 14:41:42 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-05-13 14:41:42 (GMT)
commit29559bb440529e4afd766cad61578947e86fa948 (patch)
treec25f063344054f50bef9887cb411715a1ebbc82f /src/declarative/graphicsitems
parent7894bbb901a2ba74284bd6c0544b06c6a41f6b6f (diff)
downloadQt-29559bb440529e4afd766cad61578947e86fa948.zip
Qt-29559bb440529e4afd766cad61578947e86fa948.tar.gz
Qt-29559bb440529e4afd766cad61578947e86fa948.tar.bz2
Note that you need to unset a flag to create a visual item
This needs to be documented as long as its true, or else it's a common source of confusion when writing QML items.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp
index 9433ba0..f251ba1 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp
@@ -1194,7 +1194,10 @@ QDeclarativeKeysAttached *QDeclarativeKeysAttached::qmlAttachedProperties(QObjec
width and height, \l {anchor-layout}{anchoring} and key handling.
You can subclass QDeclarativeItem to provide your own custom visual item that inherits
- these features.
+ these features. Note that, because it does not draw anything, QDeclarativeItem sets the
+ QGraphicsItem::ItemHasNoContents flag. If you subclass QDeclarativeItem to create a visual
+ item, you will need to unset this flag.
+
*/
/*!