Arabic in Qt with QString

后端 未结 3 1766
庸人自扰
庸人自扰 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:10

    set a locale and use QString directly with arabic. In case you want to change the gui to english, you will have to change the locale and use tr in QString.

    QString a=tr("تجربه")
    

提交回复
热议问题