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

TableView does not take header delegate implicitWidth into account

XMLWordPrintable

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

      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.

       

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

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

              Created:
              Updated:

                There are no open Gerrit changes