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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.7.0
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      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

        Attachments

        1. QTBUG-57637.tar.gz
          2 kB
        2. screenshot_qtbug57637.png
          screenshot_qtbug57637.png
          5 kB
        3. untitled.rar
          4 kB

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes