Arabic in Qt with QString

后端 未结 3 1768
庸人自扰
庸人自扰 2021-01-28 03:44

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          


        
3条回答
  •  臣服心动
    2021-01-28 04:29

    Try this instead. That way the string literal itself will be Unicode for sure:

    QString appTitle = QString::fromStdWString(L"تجربه");
    

提交回复
热议问题