[Qt] QString 常用函数

1. append(), prepend()

2. count(), size(), length() 这三个函数是相同的

3. trimmed() 去掉首尾空格

4. isNull() 对未赋值的字符串,返回true,对空字符串返回 false,例如“”.

5. contains() 可指定是否区分大小写

6. endsWith(), startsWith() 可指定是否区分大小写

7. section()

原文地址:https://www.cnblogs.com/liujx2019/p/10899874.html