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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.7.0
    • Widgets: Itemviews
    • 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

              mmutz Marc Mutz
              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