c++ - How to Show Bangla Font(UTF-8) in QTextBrowser / QTextEdit? -
when try output bangla text, turns out in empty box without showing bangla/unicode properly. tried this, it's not showing correctly
ui->textbrowser->settext("কেন কেন")); ui->textedit->settext("হয় না ক্যান???"));
first, go qtcreator's properties ->text editor->behavior->file encodings , set "default encoding" "utf-8".
second, write this:
ui->textbrowser->settext(qstring::fromutf8("কেন কেন"))); ui->textedit->settext(qstring::fromutf8("হয় না ক্যান???")));
third, forget wrote , use qt's translation system.
Comments
Post a Comment