Hi,
if you want to use the singleton patters use the last version from our wiki with the mutex locker. Then best practice is to add a local private variable and use a getter and setter function. Also a public static const default variable is useful if you store user settings with QSettings.
If you want to store a non changeable variable, i would just define a global variable without the singleton pattern.
Lykurg
Bookmarks