diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-28 12:24:38 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-09-28 13:38:03 (GMT) |
commit | 13068688035914454c82eb956c75365e73c8caa4 (patch) | |
tree | 242049f09216430b086a34d3a9350cb986505438 /doc/src/snippets/qt-namespace/main.cpp | |
parent | 9103021f04f7b0f15d150fca06308da60da0b8ac (diff) | |
download | Qt-13068688035914454c82eb956c75365e73c8caa4.zip Qt-13068688035914454c82eb956c75365e73c8caa4.tar.gz Qt-13068688035914454c82eb956c75365e73c8caa4.tar.bz2 |
QGraphicsItem with parent flag ItemClipsChildrenToShape not visible
Regression against Qt 4.4. Children of items with ItemClipsChildrenToShape
would only be discovered if the view's expose region contained the outer
bounding rect of all items, _if_ there was at least one item in the
scene that enabled ItemIgnoresTransformations.
The reason for this bug is that the presence of an untransformable item
causes the item lookups to go through a different path
(QGraphicsViewPrivate::itemsInArea()). This function had the bug that it
didn't correctly discover children of clip-items. Because of this, in
the provided test case you could "work around" the bug by either removing
the clip flag, or the transformation flag.
Task-number: QTBUG-4151
Reviewed-by: Alexis
(cherry picked from commit f9d6862d13ae38c59ec4a58092c8126620801e0b)
Diffstat (limited to 'doc/src/snippets/qt-namespace/main.cpp')
0 files changed, 0 insertions, 0 deletions