qt 读取window注册表 获取不到值
风声边界 2012-07-06 02:08:36 QString code("HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\KeyboardClass");
QSttings reg(code,QSettings::NativeFormat);
QStringList list = reg.allkeys();
int nCount = list.count();
QString strKey,strValue;
for(iint i =0;i<nCount;i++)
{
strKey = list.at(i);
strValue =reg.value(strKey).toString();
}
strkey都能正确输出,但是strValue总是为空,这为什么那?