Re: rs_settings
Posted by
dxli on
URL: https://forum.librecad.org/rs-settings-tp5712040p5712061.html
To write key with Group:
writeEntry("Group/Key", value);
to write key with the current group:
writeEntry("Key" value);
or
writeEntry("./Key", value);
ravas wrote
I think we can also simplify for cases like:
<pre style="background-color: #EFEFFF; font-size: 14px;">
RS_SETTINGS->beginGroup("/group");
RS_SETTINGS->writeEntry("/key", value);
RS_SETTINGS->endGroup();
</pre>
One idea is to add a parameter for the group, thereby reducing that example to a single line. <br>
The parameter could use the current group class member as a default, <br>
so that the above syntax would still work for cases when we need to access more than one.