QString convert unicode
-
You really should check the docs on this.
I've made a minor mistake, but it's easily correctable.QByteArray utf8data = string.toUtf8(); const char * utf8encoded = utf8data.constData();
wrote on 4 Nov 2016, 22:53 last edited by@kshegunov said in QString convert unicode:
QByteArray utf8data = string.toUtf8();
const char * utf8encoded = utf8data.constData();one question normally i think must show unicode text like this :
Normally i can do this
QString::fromUtf16((ushort*)buffer)But i have one problem with this only show me in unicode when i am using some modificator like ctrl. It's for one keyboard in different languages.
-
@kshegunov said in QString convert unicode:
QByteArray utf8data = string.toUtf8();
const char * utf8encoded = utf8data.constData();one question normally i think must show unicode text like this :
Normally i can do this
QString::fromUtf16((ushort*)buffer)But i have one problem with this only show me in unicode when i am using some modificator like ctrl. It's for one keyboard in different languages.
I don't understand the question. Unicode has little to do with control or with the keyboard, it's an encoding for text, not a device driver ...
-
I don't understand the question. Unicode has little to do with control or with the keyboard, it's an encoding for text, not a device driver ...
wrote on 5 Nov 2016, 18:15 last edited by@kshegunov i think is problem of my instance or i'm doing something wrong.
-
Hi,
Then tell us what you are trying to do.
-
That still doesn't explain what you are trying to do.
Why do you need all these conversion ?
-
That still doesn't explain what you are trying to do.
Why do you need all these conversion ?
-
Something like the QtVirtualKeyboard module ?
-
Something like the QtVirtualKeyboard module ?
-
Why not make use of Window's virtual keyboard ?
-
wrote on 6 Nov 2016, 00:16 last edited by Jeronimo 11 Jun 2016, 00:16This post is deleted!
17/19