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

Wrong text color for QTabBar if background role is dark

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.3.1
    • None
    • Windows

      Hi, 

      After switching to Qt 6.3.1 noticed that text in tab bars is drawn in white color.

      After research, it appeared that reason is

      QTabWidget::setBackgroundRole(QPalette::Dark) 

       

      Here is example screenshot of project compiled with two different Qt versions,

      Example is attached, please compile it with different Qt versions (6.24 should look ok, 6.3.1 looks not good).

       .

        1. image-2022-08-03-11-55-21-272.png
          12 kB
          Serhiy Malokhatko
        2. WhiteTabWidget.zip
          1 kB
          Serhiy Malokhatko
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            serhiy Serhiy Malokhatko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes