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

浙公网安备 33010602011771号