Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.15.3
-
None
Description
First, please let me know if there is a support channel I could contact for marketplace components before opening a bug report. (I'm assuming regular Qt support won't be able to help?)
I have the following in my TreeView:
rowHeightProvider: function (row) { return height / 14 }
onWidthChanged: forceLayout()
My TreeView is inside an ApplicationWindow. Since initially, the ApplicationWindow sets the size to 0x0 and then resizes to final size, initially height is 0. This means that the first time beginRebuildTable is called the row is found to be hidden, and therefore processLoadRequest is not called and loadedItem stays empty, and when after resize the forceLayout is called, it does an early return.
Is this a bug or intended behavior? I think forceLayout should handle the case that hidden rows have become visible. (or maybe even I shouldn't have to call forceLayout and that should be called internally when height changes from zero to non-zero?)
I think this is related to another ticket I created a while back: QTBUG-87609
Attachments
Issue Links
- duplicates
-
QTBUG-92076 TableView: forceLayout() fails when all columns are hidden
- Closed