QString使用正则表达式快速去空格

//QString去掉空格
QString str;
str.remove(QRegExp("\s"));
原文地址:https://www.cnblogs.com/judes/p/10724113.html