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

Drawing artifacts on QTableWidget when moved or scrolled in QMdiArea

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • Some future release
    • 4.5.2
    • GUI: Workspace
    • None

    Description

      Consider the following:

      A QTableWidget with a few rows and columns is added as a subwindow of a QMdiArea. The table widget is resized so that it has some whitespace beyond its last column.

      The table widget is then moved partially off the MDI area so that the table's whitespace is not visible. If the table widget is moved or scrolled back into view, drawing artifcats occur in the table's whitespace, following the table's horizontal grid lines.

      The following example reproduces the problem:

      int main(int argc, char **argv)
      {
      QApplication app(argc, argv);

      QMdiArea mdiArea;
      QTableWidget *table = new QTableWidget(4, 4);

      for (int row = 0; row < table->rowCount(); ++row) {
      for (int column = 0; column < table->columnCount(); ++column)

      { table->setItem(row, column, new QTableWidgetItem(QString("%0 - %1").arg(row).arg(column))); }

      }

      mdiArea.addSubWindow(table);
      mdiArea.show();

      return app.exec();
      }

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (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