读书人

QT怎么去掉字符串中的空格

发布时间: 2013-03-28 10:20:24 作者: rapoo

QT如何去掉字符串中的空格

这里给大家介绍QString中的两个函数

1.QString QString::simplified() const

Returns a string that has whitespace removed from the start and the end, and that has each sequence of internal whitespace replaced with a single space.


读书人网 >编程

热点推荐