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

QTableWidgetItem::setBackground has no affect for horizontal header Item.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.7.0
    • Widgets: Itemviews
    • None

      QTableWidget table = new QTableWidget(10, 10) ;

      table->horizontalHeaderItem(2)->setTextColor(Qt::blue); // OK
      table->item(1, 1)->setBackgroundColor(Qt::blue); //OK

      table->horizontalHeaderItem(2)->setBackgroundColor(Qt::red); // No effect

        1. QTBUG-57637.tar.gz
          2 kB
        2. screenshot_qtbug57637.png
          screenshot_qtbug57637.png
          5 kB
        3. untitled.rar
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mmutz Marc Mutz
            abhram abhram
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes