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

HorizontalHeaderView not shown when TableView is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Platform/s:
      Linux/X11, macOS, Windows

      Description

      If I defined columns in a TableModel, but don't defined any row data, the HorizontalHeaderView which binds to a TableView via the syncView property, is not visible. I also tried a C++ model but it behaves the same.

      Only after adding at least one row, the Header delegates get visible.

      If I explicitly set the model to the HeaderView and don't bind via syncView, it gets visible.

      I expected that the HeaderView is always visible, even when the model doesn't contain any rows. Or do I miss something?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              voodoo66 Voodoo Master
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes