diff options
author | Mitch Curtis <[email protected]> | 2025-05-06 14:00:50 +0800 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2025-05-13 10:06:11 +0800 |
commit | 72b558bd3f6f5c23dbe9776b233ee78f08d37f56 (patch) | |
tree | bec5234dc8f18b76d46c49afaeb545c3e5a3e054 /examples/quickcontrols/chattutorial/chapter2/images/images.qrc | |
parent | 722116b32a5c18dde24d15232edfbecf605a240a (diff) |
Enter transitions may want to animate the Menu's height based on its
implicitHeight. The Menu's implicitHeight is typically based on the
ListView's contentHeight, among other things. The docs for ListView's
forceLayout function say: "Responding to changes in the model is
usually batched to happen only once per frame." As e.g.
NumberAnimation's from and to values are set before any polishes
happen, any re-evaluation of their bindings happen too late, and the
starting height can be out-dated when menu items are added after
component completion (QQuickItemView::componentComplete does a layout,
so items declared as children aren't affected by this).
To account for this, this patch forces a layout before the transition
starts, if necessary.
Fixes: QTBUG-136256
Pick-to: 6.5 6.8 6.9
Change-Id: I1cc912347b774369b3542f0d32c654ae5615b97a
Reviewed-by: Richard Moe Gustavsen <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
Diffstat (limited to 'examples/quickcontrols/chattutorial/chapter2/images/images.qrc')
0 files changed, 0 insertions, 0 deletions