settings.setValue("Product Version"," Product Version 7.5.1.1");
settings.value("interval").toString(); //<---------------------------------------------- this line does nothing
settings.setValue("File Version","File Version 7.5.1.1");
....
QVariantObj1=settings.value("Product Version",1024);
QVariantObj2=settings.value("File Version",1024);
...
while changing the value from 7.5.1.1 to 7.5 in registry its not affecting exe file. that is next time im running that exe im getting same output i.e. 7.5.1.1.
Always read what you wrote. First you change both versions to 7.5.1.1 and then you read them. This way you will always get 7.5.1.1, no matter what's in registry.
Bookmarks