随笔分类 -  QT

摘要:Qt的QString类提供了很方便的对字符串操作的接口。使某个字符填满字符串,也就是说字符串里的所有字符都有等长度的ch来代替。QString::fill ( QChar ch, int size = -1 )例: QString str = "Berlin"; str.fill('... 阅读全文
posted @ 2015-05-17 13:29 chrispauls 阅读(184) 评论(0) 推荐(0)
摘要:QT 字符串处理函数:QString left ( int n ) const //取左边的n个字符。QString right ( int n ) const //取右边的n个字符。replace()函数提供方法替换字符串。remove()函数从字符串中移除字符。split()函数拆分字符串。mi... 阅读全文
posted @ 2015-05-16 16:14 chrispauls 阅读(372) 评论(0) 推荐(0)