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

Regression: Qt5 doesn't use the GTK+ theme font variant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.3.0, 5.3.1
    • Widgets: Style Sheets
    • None
    • Arch Linux, up to date
      Environment variable: QT_STYLE_OVERRIDE='gtk'

    Description

      To get my GTK2 theme and font used in Qt4 apps, I just had to choose GTK+.
      Qt5 does use my GTK2 theme, but the font used is DejaVu Sans.

      However, I have specified DejaVu Sans Condensed as my font of choice; it appears in GTK+ and Qt4 apps, but not Qt5 apps.

      The problem is present in all of my Qt apps.
      Screenshot provided with smplayer 14.3.0 compiled against Qt4 then Qt5 to show the difference.

      Notes:
      Manually removing /usr/share/fonts/TTF/DejaVuSans.ttf forces it to use /usr/share/fonts/TTF/DejaVuSansCondensed.ttf
      Also attached: `strace cantata |& grep -i font` which shows DejaVuSans.ttf being loaded in the end.

      Attachments

        1. smplayer_qt4_qt5.png
          72 kB
          calimeroteknik
        2. strace-cantata-wrongfont.log
          45 kB
          calimeroteknik
        For Gerrit Dashboard: QTBUG-39643
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            calimeroteknik calimeroteknik
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes