Qt基础-QString字母大小写转换 QString str = "hello"; str = str.toUpper(); //转换为大写HELLO str = str.toLower(); //转换为小写hello