I want to read the registry to find the current PowerPoint version.
However this just returns Zero:
QSettings settings("HKEY_CLASSES_ROOT\\PowerPoint.Application\\CurrVer",
QSettings::NativeFormat);
QString sReturnedValue = settings.value("(Default)", "0").toString();
Any suggestions as to how I get the value from a (default) key?
What used to be called simply “the value of a registry key” (for since there was only one, there was no need to give it a name) now goes by the special name the default value: It's the value whose name is null.
Ok, just figured it out. Whilst regedit
shows it as (Default) you just read it as Default.
QString sReturnedValue = settings.value( "Default", "0" ).toString();
Also, a period works:
RegReader.value(".", NULL).toString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With