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

Fusion Qt Quick Controls style no longer honors palette/font settings from qtquickcontrols2.conf

    XMLWordPrintable

Details

    • Linux/X11
    • 32f05c5f5f5a580af0e0fe0964d71cf498ce391b (qt/qtquickcontrols2/5.12)

    Description

      System information: Qt 5.12.0 RC, Kubuntu 18.04 x86-64

      Problem

      Under Qt 5.12.0 RC on Kubuntu 18.04, it appears that font and palette customizations made to the Fusion style via :/qtquickcontrols2.conf are no longer honored; instead, the font and palette set in KDE system settings are used.

      Under Qt 5.11.2, it was possible to modify Fusion's font and palette from :/qtquickcontrols2.conf.

      Workaround

      Font and palette customizations made using QGuiApplication::setFont and QGuiApplication::setPalette are still honored.

      Demo

      The attached project demonstrates the above issue and the workaround on KDE; I'm not sure what happens on Windows or macOS. The project specifies bright red text on a dark gray background. On Qt 5.11.2, it renders as follows:

      On Qt 5.12.0 RC:

      On Qt 5.12.0 RC, with font and palette customizations moved to main before QQmlApplicationEngine initialization:

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            yipdw1 yipdw1
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes