Qt删除字符串的最后几个字符

string = string.left(string.length() - 1);

-1: 表示字符串缩短一个字符。

posted @ 2022-02-02 21:50  看不见的R  阅读(1056)  评论(0编辑  收藏  举报