可以看到路径中包含“立体定向手术计划软件”,读取的方式如下
SoftwareInfo GLTool::getSoftwareInfo()
{
SoftwareInfo info;
QSettings reg("HKEY_LOCAL_MACHINE\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\立体定向手术计划软件", QSettings::NativeFormat); //WOW6432Node是因为32为
安装程序写注册表时被重定向了
//QString version = reg.value("DisplayVersion").toString();
QStringList keyList = reg.childKeys();
info.versionRelase = reg.value("DisplayVersion").toString();
info.versionComplete = "1.0.0"; //目前程序写死
info.installationDateTime = reg.value("InstallationDate").toString();
return info;
}
读取不出来,如果读取纯英文路径下的键和值是可以正常的读的,为什么