Settings Generator: Example

PreviousNext

Overview

There are two examples that show how to use the classes generated with the settings generator. A very simple one and a more advanced one.

settings_simple

The simple settings example doesn't do anything very useful, but demonstrates how to load, access, modify and save settings. To show that the settings are really saved, an integer is incremented and displayed every time the program starts.

settings_with_widgets

This example is more advanced. It demonstrate how to use the widgets that are created with the settings. The example shows all available widgets. Changing some widgets even trigger an action (i.e. change the volume).