Qt實現多國語言(即界面翻譯)可實時進行切換

  1.在工程文件添加 TRANSLATIONS = debug/lang_English.ts \ debug/lang_Chinese.ts 2.在需要翻譯的地方用上tr 例如:setText(tr("hello world")); 3.提供一個更改語言的接口 void MainWindow::changeTr(int langu
相關文章
相關標籤/搜索