Try to call
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
immediately after creating the QApplication object. QTextCodec::setCodecForTr is only required when using tr() .
EDIT: this only works for Qt older than version 5. Newer versions of Qt expect the source files to be converted to UTF-8.
source share