QString qstr = ((QString)str).latin1(); label->setText(qstr );

QString qstr = ((QString)"字符串").latin1();
label->setText(qstr );

向标签写入字符串

posted @ 2021-07-01 09:33  祥瑞哈哈哈  阅读(51)  评论(0编辑  收藏  举报