안녕하세요... 적수네 말은 들었는데 오긴 첨이네여..^^;;;
한글을 사용할수 있는 방법좀 알려주세요..ㅜ.ㅜ
지금 네시간째 삽질중......
오로지 헬로우 프로그램을 한글로 띄우겠다는 집념하에
열심히.. 영어를 파보지만 안되더군요..ㅜ.ㅜ
계속 세그멘트 오류만 나올뿐..
#include <qtextcodec.h>
#include <qapplication.h>
#include <qlabel.h>
int main( int argc, char* argv <> )
{
QApplication myapp( argc, argv ) ;
QCString encrevlis = " 안녕하세요 " ;
QTextCodec* codec = QTextCodec::codecForName("eucKR") ;
QString revlis=codec->toUnicode(encrevlis);
QLabel* mylabel = new QLabel( revlis , 0 ) ;
//revlis부분을 "revlis"로 바꿔도 안되는 걸로 봐서는 저 위에쪽에 잘
못이 있는것같아요..ㅜ.ㅜ
mylabel->resize( 300, 30 ) ;
myapp.setMainWidget(mylabel) ;
mylabel->show();
return myapp.exec();
}
글고.. 저희 카페도.. 와주세요..^^;;;
http://cafe.daum.net/cqt 큐티카펜데.. 영자가 허접이다보니.... 친구둘밖에 없네요..
와서 놀다가 가세요.^^
영자님들 모집해여....^^;;