QString filePath(strContext);
int index = filePath.indexOf(QChar::Null);//去掉Qstring中 \0 \u0000
if(-1 != index)
{
filePath.truncate(index);
}
Qt QString 中去除字符串尾部的 \000 \0 \u000
最新推荐文章于 2025-08-16 23:43:08 发布
765

被折叠的 条评论
为什么被折叠?



