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

TableView header delimiter double-click works incorrectly for 1 and 2 rows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.1
    • 5.2.1, 5.3.0
    • Quick: Controls 1
    • None
    • ca06986af37dad834afe7f6c81eb20d0751c6d78

    Description

      TableView header delimiter double-click works incorrectly for 1 and 2 rows

      1 row: column resize doesn't work completely
      2 rows: column resize adopt to 2nd row, no matter what width is required for 1st row.

      3 rows: it works correctly

      Example

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      TableView
      {
          width: 800
          height: 600
          model: ListModel {
              ListElement
              {
                  column1: "111111111111111"
                  column2: "1"
              }
              ListElement
              {
                  column1: "1111111111111111111111111111111111111"
                  column2: "1"
              }
              ListElement
              {
                  column1: "1111111111111111111111"
                  column2: "1"
              }
          }
          TableViewColumn {
              role: "column1"
              title: "column1"
              width: 120
          }
          TableViewColumn {
              role: "column2"
              title: "column2"
              width: 120
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-39337
        # Subject Branch Project Status CR V

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            vyelnikov Vladimir Yelnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes