Skip to content

[Feature Request] handle setting groups (replacing chars in widget names?) #8

@rduivenvoorde

Description

@rduivenvoorde

I have a settings set in which I wanted to use the QSettings possibility to make settings groups, that is creating setting names like:
myplugin/service/wm_name
myplugin/service/uri

BUT if you want your settings to be backed by a gui, Qt-Designer fails to use names with '/' or '-' in it.

For now I renamed the plugin name to: myplugin/service so 'it works' for this usecase

But I was wondering if we could maybe think of a path-separator in the names, which is ok for qt-designer (actually I can only come up with 'numbers', as only characters and '' are allowed, and '' is already often used in names...
So the idea is to be able to use for example '7' as path separator '/'/

So you name your input widget: myplugin7service7uri (which is possible in QtDesigner), and when writing/reading to QSettings this becomes: myplugin/service/uri

Does this makes sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions