Qt 인코딩을 utf-8로 설정

413 단어
  1 #include "mainwindow.h"
  2 #include <QApplication>
  3 #include <QTextCodec>
  4 
  5 int main(int argc, char *argv[])
  6 {
  7     QApplication app(argc, argv);
  8     QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));  //   utf8   
  9     MainWindow w;
 10     w.show();
 11     
 12     return app.exec();
 13 }
~        

좋은 웹페이지 즐겨찾기