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


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

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;
// }
//}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM