Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.2
-
6254b383309a0c3cd273264466105a7e3599a1ed (qt/qtdeclarative/dev) b2a4a61e8c (qt/tqtc-qtdeclarative/5.15)
-
Bug Fixing Candidates
Description
In GridView, when setting the layoutDirection to Qt.RightToLeft and cellWidth to a dynamically calculated value, all the items will shift to the right side of the view, making part of the items invisible.
The bug is not reproducible when either layoutDirection is LeftToRight or the cellWidth is a fixed value.
When placing the GridView in a ScrollView, dragging the horizontal scrollbar will make the items return to normal. Also, setting the layoutDirection imperatively (e.g. in Component.onCompleted) instead of declaratively can also fix the issue. However, resizing the window will make the issue come back.
This is reproducible on all platforms.
I've attached a simple Qt app and a short video to demonstrate the bug. It should be easy to reproduce the bug using the app.