QT 타입 변환
[ QT C++ Conde ]
test( "안녕하세요." );
...
...
void test( QString testText ) {
QBytArray array = testText.toUtf8();
char *charText = array.data();
qDebug() << "QString Text: " << testText;
qDebug() << "char[] Text: " << charText;
}
[ 결과 ]
>> QString Text: 안녕하세요.
>> char[] Text: 안녕하세요.