Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14
-
None
Description
If the Image has asynchronous: true, then at the time TableView does layout, implicitWidth and implicitHeight are 0. TableView prints a warning and default to 50x50. Of course the implicit size is known a bit later, but this does not provoke TableView to redo its layout. Should it?
A workaround is to use columnWidthProvider and rowHeightProvider, but that requires knowing how big the images should be.
This comes up in the context of attempting to use TableView as part of a tiling solution for large images. See https://codereview.qt-project.org/c/qt/qtdeclarative/+/285425 and predecessors.