Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81045

asynchronous Image as TableView delegate: implicit size not known soon enough

    XMLWordPrintable

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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes