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

QTableView incorrectly displayed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.9.3
    • Widgets: Itemviews
    • None

      I create QTableview and uses QSqlTableModel. She contains 7 columns. Columns 0 and 6 is hide.

      ui->tableView->hideColumn(0);

      ui->tableView->hideColumn(6);

      And i create a column 7 and set it QPushButton

      model->insertColumn(7);

      model->setHeaderData(7, Qt::Horizontal, QString(""));

      QPushButton* button = new QPushButton(..., ui->tableView);

      ui->tableView->setIndexWidget(model->index(i,7), button);

      Sortin is enabled. After sort by some column i create column 7 in the same way.

      See screen

       

        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
            atrofimov atrofimov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes