QString 类保存了16位Unicode 值,接下来看看如何操作字符串。
求长度
length()
字符串的组合
方式一 + +=
QString str = "Hello ";
str = str+ "world"; //str="Hello world"
str+="world"; //str="Hello world"
方式二 append()
QString str= "Welcome ";
QString str1="to ";
str