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