I understood about QSettings but still not getting what I intend.
I have a key named 'Status' which can take two values 'success' or 'failed' according to the process and is available in the path 'Software/Burn'. I want to display some message depending on the value obtained. I have done it like...
QString value
= settings.
value("HKEY_CURRENT_USER/Software/Burn/Status").
toString();
if(value == "failed") {
// display some message
} else if(value == "success") {
// display some message
}
QSettings settings("HKEY_CURRENT_USER/Software/Burn", QSettings::NativeFormat);
QString value = settings.value("HKEY_CURRENT_USER/Software/Burn/Status").toString();
if(value == "failed") {
// display some message
} else if(value == "success") {
// display some message
}
To copy to clipboard, switch view to plain text mode
Please let me know what's wrong in this, why doesn't it work???
Bookmarks