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

Qt5.8/Mac : unreadable text of selected QTabWidget item because rendered in white (Fusion style)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.8.0 RC
    • None
    • Mac OS X 10.9.5, Qt 5.8.0RC vs. Qt 5.7.1
    • macOS

    Description

      Qt 5.8.0 introduced an unhappy change: when using the Fusion application style on Mac (or any other style that's not the native style), the text of the selected tab in a QTabWidget is rendered in white or a very close colour. With the default background this makes the text nearly impossible to read.

      The Fusion style is a very convenient and nicely fitting-in style to make the QTabWidget appropriate for use in tabbed editors, much more so than the document mode of the same widget in the Macintosh style.

      This behaviour doesn't occur when the widget is in "document" mode. I do not observe this on Linux but I DO observe it on Mac using the XCB QPA plugin. Which suggests that the underlying change is in a platform-specific section that is not part of the QPA plugin. Where should I start searching?

      Simple demonstrator: https://github.com/RJVB/QtTabDialogTest

      Run with `-style fusion` or `-style windows`.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              rjvbertin René Bertin
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes