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

QTableView improperly resizes row heights on maximize/normalize window state switching.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.6.1
    • Widgets: Itemviews
    • None
    • Nokia Qt SDK 2010.01
      WinXP SP2 Rus

    Description

      In constructor:

      [CODE]
      ui->tableView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
      ui->tableView->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents);

      connect(ui->tableView->horizontalHeader(), SIGNAL(sectionResized(int,int,int)), ui->tableView, SLOT(resizeRowsToContents()));
      [/CODE]

      This works correctly with:

      • manual window resizing;
      • minimized/normal window state switching.

      This works buggy with maximize/normalize window state switching.
      Looks like resizing happens just before new state became actual. So, resizing looks like happened but for previous state. Minimizing/restoring into current state repairs situation but till another maximization or normalization.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sarbash Sergey Sarbash
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes