Skip to content

Forcing style when Fusion is explicitly set is a little rude #151

@rburchell

Description

@rburchell

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions