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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -