Qt 中文乱码解决办法 u8

Qt中经常遇到显示中文乱码问题。

有两种好的解决办法:

1.中英文翻译器(推荐)

2.在汉字前面加上u8

如下:

1 QString str = u8"测试";
2 QAction *action1 = new QAction(str);

猜你喜欢

转载自www.cnblogs.com/ybqjymy/p/12909759.html