Hi, I'm trying to show the unicode keys to learn more about the subject. The char contains the unicode as follows '\ u0041'. It is a QString of the following "\ u0041" that I convert to char '\ u0041'.Codigo:
char myChar = s[0].toLatin1(); // lo convierto en char
But when I put the code in the case:
switch (myChar){
//
case '\u0001': qDebug() << "aprendiendo";break;
default:break;
}
This is the error that gives me: a universal character name specifies an invalid character
Then it is impossible to show a unicode with a char, what code should I use. I want to learn to show it with a switch not with if.