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

QTableView selection-background-color no effect in Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 5.1.1
    • GUI: Look'n'Feel
    • None
    • Vista sp2 vs2010, qt 5.1.1 32bit vs2010 opengl installer
      Linux (debian 7.2) xfce4, qt 5.1.1

    Description

      Setting style sheet selection-background-color for QTableView has no effect in Linux. Works fine in Windows.

      The test case attached creates a plain QTableView, populates it with some dummy QStandardItemModel, setStyleSheet to make selected cells have red background color.

      In Windows, the selected cells highlight red as intended, but in Linux, the selected cells have default system bg selection color. i.e. I can change the color by changing the GTK style through xfce's system wide Appearance settings, but Qt doesn't seem to be able to override it.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jhj Jae Jang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes