aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-11-17 17:44:23 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-11-22 09:00:58 +0100
commitcff3977d2ec5e55d0285e13b2bfe31ca04babf66 (patch)
tree488c6c8361c5743d8914ae02c5b87110445392aa /src/qml/compiler/qv4codegen.cpp
parentd6961c09de36e15c57f29109edf5fbfef53ef4d4 (diff)
Visible signal is not emitted when item is removed or added to parent
Add tests that document this bug. When the visual parent of an item is destroyed, then the item's parent becomes nullptr. Then the item is no longer part of any visual hierarchy, and should no longer be visible on screen. However, the visibleChanged signal does not get emitted, or gets emitted twice (and the visible property ends up set to true in the end). Note: the current behavior is the only reason why the "visible" test in tst_qquickitem passes: the root item is created without a window, and yet it, and its children, are expected to be visible. Task-number: QTBUG-108213 Task-number: QTBUG-107850 Change-Id: I8dba24e7e0cf1899bf815d897b4466baaa86d31b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions