Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.3
-
-
5b17c0363 (dev), c1683afa5 (6.9), 560f63bbe (tqtc/lts-6.8), 833890509 (tqtc/lts-6.5)
Description
Qt’s documentation for Item.enabled (https://doc.qt.io/qt-6.8/qml-qtquick-item.html#enabled-prop) states that if a parent’s enabled is set to false, a child’s enabled property “is set to false or true depending on the value it previously had.” In practice, disabling a parent does not change the child’s enabled property or break its binding. Instead, children simply inherit an effective disabled state without modifying their underlying property or binding. The documentation should be corrected to reflect this distinction.
Actual Behavior:
- The documentation implies the child’s property is set/reset or that bindings may be lost when a parent is disabled, which does not occur.
Expected Behavior:
- The documentation should state that disabling a parent does not alter or remove a child’s enabled binding/property, but rather that children compute their effective enabled state by combining their own enabled value with their parent's states
Attachments
For Gerrit Dashboard: QTBUG-136699 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
644759,13 | Doc: Clarify Item::enabled behavior with respect to child items | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
649096,2 | Doc: Clarify Item::enabled behavior with respect to child items | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
649772,2 | Doc: Clarify Item::enabled behavior with respect to child items | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
650670,2 | Doc: Clarify Item::enabled behavior with respect to child items | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |