Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.1, 5.9.7, 5.12.0, 5.15.0, 6.5.5, 6.7.0
-
Bug Fixing Candidates, UI Bug Fixing Q1/2021
Description
In the attached code, the "Small Button" is incorrectly pushed off the bottom of the window (see "actual.png"). When resizing the window, the layout gets "nudged" so that the button appears correctly (see "expected.png").
Possible diagnosis: positioning is scheduled to happen at polish time. However, positioning appears not to happen in certain pathological cases. One example is a ListView with a positioner item as the delegate. When you add an item to the model for the ListView, it causes the positioner to register and receive a geometry change event for items in the positioner. However, if the ListView is polished before the positioner, then it starts a transition before the positioner is able to update its position. When the positioner is polished/positioned, it emits a geometry change event that the ListView ignores since the transition has already been started.
The change in the attached code review (from daiweili, along with the diagnosis above) causes both buttons to appear correctly, but causes half of the tst_qquickpositioners unit tests to fail.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-62148 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
212604,1 | QQuickPositioner WIP: do positioning directly when geometry changes | 5.9 | qt/qtdeclarative | Status: NEW | -2 | 0 |