Qt5解决乱码

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhaoyong26/article/details/86346364
#include <QTextCodec>

QTextCodec* codec = QTextCodec::codecForName( "UTF-8" );
QTextCodec::setCodecForLocale( codec );

猜你喜欢

转载自blog.csdn.net/zhaoyong26/article/details/86346364