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

ItemViews : Invisible text in table headings on Mac OSX

    XMLWordPrintable

Details

    • macOS

    Description

      The header text of mac itemviews is displayed in white, and the selected cell in a grid is indicated by lightening the corresponding row and column headers, resulting in very difficult to see text on the mac. It would be nice if the default values were easier to read, perhaps something like what itunes has with black text and grey selection indicator for the header areas.

      Untill the default is changed it is easy enough to set the pallet on each application with code similar to the example below.

      The Color role used for highlighted text is QPalette::BrightText.
      The role used to set the color of the header text is QPalette::ButtonText.

      QPalette adjusted_palette = _table->horizontalHeader()->palette();

      adjusted_palette.setColor( QPalette::Active, QPalette::ButtonText, QColor( "red" ) );

      adjusted_palette.setColor( QPalette::Active, QPalette::BrightText, QColor( "green" ) );

      _table->horizontalHeader()->setPalette( adjusted_palette );
      _table->verticalHeader()->setPalette( adjusted_palette );

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes