1、找到工具->外部->配置

2、添加目录,双击命名语言家
3、在语言家目录下,添加工具

双击重命名lupdate,即更新翻译

cpp
%{CurrentDocument:Project:QT_INSTALL_BINS}\lupdate
%{CurrentDocument:Project:FilePath}
%{CurrentDocument:Project:Path}
再添加工具,双击重命名lrelease,即发布翻译

cpp
%{CurrentDocument:Project:QT_INSTALL_BINS}\lrelease
%{CurrentDocument:Project:FilePath}
%{CurrentDocument:Project:Path}