Re: Problems with QSettings
In your ini-file background equals empty string, wich is invalid
Re: Problems with QSettings
Quote:
Originally Posted by
borisbn
In your ini-file background equals empty string, wich is invalid
Like this guy says, if there is a setting in the ini file it will mean there is a value even if there is not. If it uses a default value, like you say White. The entry will simply be not there. So remove the background= from the ini file and it will return white
Always remember, default values will not be listed.
entries listed have values even if empty
Re: Problems with QSettings
Quote:
Originally Posted by
ComaWhite
Like this guy says, if there is a setting in the ini file it will mean there is a value even if there is not. If it uses a default value, like you say White. The entry will simply be not there. So remove the background= from the ini file and it will return white
Always remember, default values will not be listed.
entries listed have values even if empty
How can I set a default value in the ini file for a QColor? For example I would have white as default in the ini file and
If the user would change it I'll update the value
Re: Problems with QSettings
Well, like I said. If the user modified it, the entry will be in the ini, if not it won't be there.