Answer the question
In order to leave comments, you need to log in
QT how to translate unicode to character?
I've already broken my head. There is a Cyrillic character code, it needs to be displayed in qtextedit, but I do not understand how to convert it to a character.
I'm trying like this:
// Например, codeSymbol = 1040 - это "А"
ui->textEdit->insertPlainText(QString(char(codeSymbol)));
// и так
ui->textEdit->insertPlainText(QString(codeSymbol));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question