سؤال

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