I want to add an Arabic title to my Qt application, but it didn\'t work. Here is my code:
#include \"mainwindow.h\"
#include
#include
That looks like a typical "UTF-8 interpreted as ISO-8859-1" encoding issue. In fact it's a "CP1256 interpreted as Latin1" issue.
On Windows, with a non-Unicode codepage, try the following:
QString appTitle = QString::fromLocal8Bit("تجربه");
If you had your source file in UTF-8, try this instead:
QString appTitle = QString::fromUtf8("تجربه");
(See codecForLocale() for what that's supposed to do.)
Qt Creator 2.7/Windows 7 (in a VM)/UTF-8 source file: