Bug report #17376
QgsSettings::beginGroup() is superior to QgsSettings::Section
Status: | Feedback | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Nathan Woodrow | ||
Category: | Unknown | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 25273 |
Description
Just a simple example:
QgsSettings settings;
settings.begingGroup( "my_group" );
settings.setValue( "my_key", 7, QgsSettings::Section::App )
results with:
[my_group]
app/key=7
Shouldn't beginGroup() optionally accept QgsSettings::Section? Like that:
void beginGroup( const QString &prefix, const QgsSettings::Section section = QgsSettings::Section::NoSection );
I marked it as a bug, as it causes rather unexpected results and makes beginGroup() more or less useless.
History
#1 Updated by Giovanni Manghi over 5 years ago
- Status changed from Open to Feedback
Please check if this issue is still valid on QGIS 3.4.5 or 3.6.