QGnomePlatform icon indicating copy to clipboard operation
QGnomePlatform copied to clipboard

Forcing style when Fusion is explicitly set is a little rude

Open rburchell opened this issue 1 year ago • 0 comments

In QGnomePlatformTheme::QGnomePlatformTheme, there's the following code:

    // if the user has explicitly set something else, don't meddle
    // Also ignore the default Fusion style
    if (!QQuickStyle::name().isEmpty() && QQuickStyle::name() != QLatin1String("Fusion")) {
        return;
    }

This seems a little rude; it means that if I'm developing an application that relies on that style (which is how this originally bit me), I'm not able to use it while also using QGnomePlatform.

Wouldn't it be better to do something like recommend that QT_QUICK_CONTROLS_STYLE=org.kde.desktop be set in the environment when packaging QGnomePlatform (and also that a dependency, or at least a recommended dependency, be added)?

rburchell avatar Aug 25 '23 14:08 rburchell