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

[TreeView] "no visible row or column found, leaving table empty" when there are rows and columns

    XMLWordPrintable

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

          Activity

            People

              richard Richard Moe Gustavsen
              mmi_puya Puya Daravi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: