void deBlank(QString &strs){ int len = strs.length(); for (int i=0;i<len;i++) { if (strs.at(i).isSpace()) { strs[i] = QChar(' '); } }}//该片段来自于http://www.codesnippet.cn/detail/06122012845.html
来源: http://www.codesnippet.cn/detail/06122012845.html