zl程序教程

您现在的位置是:首页 >  工具

当前栏目

Qt访问注册表QSettings 遍历查找key值

Qt遍历 访问 查找 Key 注册表
2023-09-14 09:07:36 时间

自己开发了一个股票智能分析软件,功能很强大,需要的点击下面的链接获取:

https://www.cnblogs.com/bclshuai/p/11380657.html

////访问注册表获取播放器路径
//QSettings reg("HKEY_CLASSES_ROOT\\btoolpplayerprotocol\\shell\\open\\command", QSettings::NativeFormat);
//QStringList keyList = reg.childKeys();
//QString location = "";

//遍历查找key值
//foreach(QString key, keyList)
//{
// QString slocation = reg.value(key).toString();
// if (slocation!="" || slocation.contains("exe", Qt::CaseSensitive))
// {
// location = slocation;
// break;
// }
//}