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

Reducing row/col span in QTableView results in assert at line 118 of qtableview.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.2
    • 4.6.1
    • Widgets: Itemviews
    • None
    • Windows 7 / Qt 4.5.3 / Qt 4.6-rc1
    • 75d68b2b245da91ec9f985893f9b233d9d6a0793,517631a6021a480e4098e39e7d6f65d91c35559d

    Description

      To reproduce, use something like this on a QTableView:-

      ui.setupUi(this);
      mModel = new QStandardItemModel(6,6,this);

      for (int row = 0; row < 6; ++row) {
      for (int column = 0; column < 6; ++column)

      { QStandardItem *item = new QStandardItem(QString("row %0, column %1").arg(row).arg(column)); mModel->setItem(row, column, item); }

      }
      ui.tableView->setModel(mModel);
      ui.tableView->setSpan( 0, 0, 2, 2 );
      ui.tableView->setSpan( 0, 0, 1, 1 );

      When the span is reduced for the item at 0,0 the ASSERT occurs.

      This seems to be a regression as it does not reproduce using Qt 4.5.3

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes