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

QTableView: moving items from under a span will create painting problems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.5.2, 5.7.0
    • Fix Version/s: Some future release
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      #include <QtGui>
      int main(int argc, char *argv[])
      {
              QApplication app(argc, argv);
              QTableWidget tw;
              tw.setColumnCount(3);
              tw.setRowCount(3);
              tw.setItem(1, 2, new QTableWidgetItem("painterror"));
              tw.setSpan(1, 1, 1, 2);
              tw.setSelectionMode(QAbstractItemView::SingleSelection);
              tw.horizontalHeader()->setMovable(true);
              tw.show();
              return app.exec();
      }
      

      To reproduce: move column 2 to column 0. Resize the window to see that cell 1,0 is only painted correctly when only column 0 is shown.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            monsen Marius Bugge Monsen
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes