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

TableView does not take header delegate implicitWidth into account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8, 6.9
    • None

    Description

      TableView does not take header delegate implicitWidth into account to calculate column width, so it may become cut. So Row heights and column widths calculations only related to the TableView columns/delegates, and not  to the connected HorizontalHeaderView, which is wrong.

      To reproduce  you may take this example: https://github.com/akontsevich/learnqt_blog_posts/tree/fix_errors/01-TableViewCppModel

      And set TableView.delegate Label text property to something short:

       

      text: "1"

      All the headers are cut:

      In Label item implicitWidth property is readonly. Issue is also reproducible with different controls with implicitWidth explicitly set.

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alekseyka Aleksey Kontsevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes