문제

can anyone help me in converting a QString into unicode from Ascii and vice versa

If possible add some code snippet.

Thanks,

도움이 되었습니까?

해결책

QString provides the toUtf8() function that returns a const char * version of the string as QByteArray. QString also provides fromUtf8().

B.T.W. The Qt technical pages provide plenty of examples.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top