Displays only the English version of how to transform into a Chinese version of the week
CodePudding user response:
If LZ QT version is in English, or the system language is English, I am here is in Chinese,,,,,,,CodePudding user response:
The Chinese version of
CodePudding user response:
Is to set up the QLocaleCodePudding user response:
According to yourself in English into Chinese, not just 7 daysCodePudding user response:
CodePudding user response:
Language setting to Chinese versionCodePudding user response:
QDateTime dateTime=QDateTime: : currentDateTime ();
QLocale locale=QLocale: : Chinese;//specified in Chinese shows
//QLocale locale=QLocale: : English;//specified English
//QLocale locale=QLocale: : Japanese;//specify the Japanese show
QString strFormat="current time is: yyyy - MM - dd hh: MM: ss DDDD";
QString strDateTime=locale. ToString (dateTime, strFormat);
QDebug () & lt;