Bug report #17376

QgsSettings::beginGroup() is superior to QgsSettings::Section

Added by Borys Jurgiel over 5 years ago. Updated almost 4 years ago.

Assignee:Nathan Woodrow
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


Just a simple example:

QgsSettings settings;
settings.begingGroup( "my_group" );
settings.setValue( "my_key", 7, QgsSettings::Section::App )

results with:


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.


#1 Updated by Giovanni Manghi almost 4 years ago

  • Status changed from Open to Feedback

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF