当前位置:网站首页>Résolution des erreurs signalées par qtcreator

Résolution des erreurs signalées par qtcreator

2022-06-21 17:00:00 CSU garye

Message d'erreur:use of overload operator '=' is ambiguous (with operand types 'std::string'(aka 'basic_string<char,char_traits<char>,allocator<char> >')and 'QByteArray')

Code précédent

strModelName = attributes.value("ModelName").toLocal8Bit();

Code modifié

strModelName = attributes.value("ModelName").toLocal8Bit().data();

Note:: strModelNameLe type eststring

原网站

版权声明
本文为[CSU garye]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211326334400.html