当前位置: 首页 > news >正文

wordpress addactionseo方法培训

wordpress addaction,seo方法培训,hexo做网站,网络营销策略理论有哪些QT开发之路 企业级开发系列文章,主要目标快速学习、完善、提升 相关技能 高效完成企业级项目开发 分享在企业中积累的实用技能和经验。 通过具体的编码过程、代码示例、步骤详解、核心内容和展示的方法解决遇到的实际问题。 阅读前声明 本系列文章属于付费内容 禁止…

        QT开发之路 企业级开发系列文章,主要目标快速学习、完善、提升 相关技能 高效完成企业级项目开发 分享在企业中积累的实用技能和经验。

        通过具体的编码过程、代码示例、步骤详解、核心内容和展示的方法解决遇到的实际问题。

 阅读前声明 本系列文章属于付费内容 禁止转载、复制、抄袭 仅限付费读者阅读参考。

QT 多语言转换 ts、qm

1 运行环境

2 命令用法

3 软件界面

4 vs配置

5 .h代码

6 .cpp代码

7 其它

8 en.ts

9 xf.ts

10 zh.ts

11 其它文章


1 运行环境

         VS2017+QT

2 命令用法

lupdate 更新翻译文件        生成 .ts 文件

用法:

lupdate ./ -ts language/QLinguist_en.ts language/QLinguist_zh.ts language/QLinguist_xf.tslanguage/QLinguist_en.ts //language/目录 按照实际需求更改

lrelease 发布更新文件        生成 .qm 文件

用法:

lrelease language/QLinguist_en.ts language/QLinguist_zh.ts language/QLinguist_xf.tslanguage/QLinguist_en.ts // language/ 目录 按照实际需求更改

3 软件界面

4 vs配置

        项目-> 属性->生成事件->生成后事件->输入

lupdate ./ -ts language/QLinguist_en.ts language/QLinguist_zh.ts language/QLinguist_xf.ts
lrelease language/QLinguist_en.ts language/QLinguist_zh.ts language/QLinguist_xf.ts

5 .h代码

#pragma once#include <QtWidgets/QMainWindow>
#include "ui_QLinguist.h"
#include <QTranslator>
#include <QDebug>#pragma execution_character_set("utf-8")
class QLinguist : public QMainWindow
{Q_OBJECTpublic:QLinguist(QWidget *parent = nullptr);~QLinguist();private slots:void on_ActionTriggered();void on_ActionXf_Triggered();void on_ActionEn_Triggered();private:Ui::QLinguistClass ui;QString strFilePath = "";QTranslator zh;QTranslator xf;QTranslator en;
};

6 .cpp代码

#include "QLinguist.h"QLinguist::QLinguist(QWidget *parent): QMainWindow(parent)
{ui.setupUi(this);setWindowTitle("多语言切换Demo CSDN 双子座断点 V1.0 https://blog.csdn.net/qq_37529913?type=blog");strFilePath = "C:/Users/dream/source/repos/QLinguist/QLinguist/language/";zh.load(strFilePath + "QLinguist_zh.qm");xf.load(strFilePath + "QLinguist_xf.qm");en.load(strFilePath + "QLinguist_en.qm");connect(ui.action, SIGNAL(triggered()), SLOT(on_ActionTriggered()));connect(ui.action_2, SIGNAL(triggered()), SLOT(on_ActionXf_Triggered()));connect(ui.action_3, SIGNAL(triggered()), SLOT(on_ActionEn_Triggered()));}QLinguist::~QLinguist()
{}void QLinguist::on_ActionTriggered() 
{qDebug() << ".....";qApp->installTranslator(&zh);ui.retranslateUi(this);
}void QLinguist::on_ActionXf_Triggered()
{qDebug() << ".....";qApp->installTranslator(&xf);ui.retranslateUi(this);
}void QLinguist::on_ActionEn_Triggered()
{qDebug() << ".....";qApp->installTranslator(&en);ui.retranslateUi(this);
}

7 其它

void QLinguist::on_ActionEn_Triggered()
{qDebug() << ".....";//qApp->installTranslator(&en);//ui.retranslateUi(this);//ui.lineEdit->setText(tr("图像路径为空!"));
}

8 en.ts

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en_US">
<context><name>QLinguist</name><message><location filename="../QLinguist.cpp" line="51"/><source>图像路径为空!</source><translation type="unfinished">The image path is empty!</translation></message>
</context>
<context><name>QLinguistClass</name><message><location filename="../QLinguist.ui" line="14"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="227"/><source>多语言切换Demo CSDN 双子座断点 V1.0 https://blog.csdn.net/qq_37529913?type=blog</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="29"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="204"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="231"/><source>图像路径:</source><translation type="unfinished">image path:</translation></message><message><location filename="../QLinguist.ui" line="62"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="205"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="232"/><source>曝光:</source><translation type="unfinished">Exposure:</translation></message><message><location filename="../QLinguist.ui" line="95"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="206"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="233"/><source>增益:</source><translation type="unfinished">gain:</translation></message><message><location filename="../QLinguist.ui" line="128"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="207"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="234"/><source>区域:</source><translation type="unfinished">roi:</translation></message><message><location filename="../QLinguist.ui" line="161"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="208"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="235"/><source>串口:</source><translation type="unfinished">com:</translation></message><message><location filename="../QLinguist.ui" line="236"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="209"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="237"/><source>语言选择</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="246"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="201"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="228"/><source>简体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="251"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="202"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="229"/><source>繁体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="256"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="203"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="230"/><source>English</source><translation type="unfinished"></translation></message><message><location filename="../x64/Debug/uic/ui_QLinguist.h" line="200"/><source>QLinguist</source><translation type="unfinished"></translation></message>
</context>
</TS>

9 xf.ts

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context><name>QLinguist</name><message><location filename="../QLinguist.cpp" line="51"/><source>图像路径为空!</source><translation type="unfinished">圖像路徑為空!</translation></message>
</context>
<context><name>QLinguistClass</name><message><location filename="../QLinguist.ui" line="14"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="227"/><source>多语言切换Demo CSDN 双子座断点 V1.0 https://blog.csdn.net/qq_37529913?type=blog</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="29"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="204"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="231"/><source>图像路径:</source><translation type="unfinished">圖像路徑:</translation></message><message><location filename="../QLinguist.ui" line="62"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="205"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="232"/><source>曝光:</source><translation type="unfinished">曝光:</translation></message><message><location filename="../QLinguist.ui" line="95"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="206"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="233"/><source>增益:</source><translation type="unfinished">增益:</translation></message><message><location filename="../QLinguist.ui" line="128"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="207"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="234"/><source>区域:</source><translation type="unfinished">區域:</translation></message><message><location filename="../QLinguist.ui" line="161"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="208"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="235"/><source>串口:</source><translation type="unfinished">串口:</translation></message><message><location filename="../QLinguist.ui" line="236"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="209"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="237"/><source>语言选择</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="246"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="201"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="228"/><source>简体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="251"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="202"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="229"/><source>繁体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="256"/><location filename="../x64/Debug/uic/ui_QLinguist.h" line="203"/><location filename="../x64/Release/uic/ui_QLinguist.h" line="230"/><source>English</source><translation type="unfinished"></translation></message><message><location filename="../x64/Debug/uic/ui_QLinguist.h" line="200"/><source>QLinguist</source><translation type="unfinished"></translation></message>
</context>
</TS>

10 zh.ts

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_CN">
<context><name>QLinguist</name><message><location filename="../QLinguist.cpp" line="49"/><source>图像路径为空!</source><translation type="unfinished">图像路径为空!</translation></message>
</context>
<context><name>QLinguistClass</name><message><location filename="../QLinguist.ui" line="14"/><source>多语言切换Demo CSDN 双子座断点 V1.0 https://blog.csdn.net/qq_37529913?type=blog</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="29"/><source>图像路径:</source><translation type="unfinished">图像路径:</translation></message><message><location filename="../QLinguist.ui" line="62"/><source>曝光:</source><translation type="unfinished">曝光:</translation></message><message><location filename="../QLinguist.ui" line="95"/><source>增益:</source><translation type="unfinished">增益:</translation></message><message><location filename="../QLinguist.ui" line="128"/><source>区域:</source><translation type="unfinished">区域:</translation></message><message><location filename="../QLinguist.ui" line="161"/><source>串口:</source><translation type="unfinished">串口:</translation></message><message><location filename="../QLinguist.ui" line="236"/><source>语言选择</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="246"/><source>简体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="251"/><source>繁体中文</source><translation type="unfinished"></translation></message><message><location filename="../QLinguist.ui" line="256"/><source>English</source><translation type="unfinished"></translation></message>
</context>
</TS>

11 其它文章


文章转载自:
http://rimu.zfqr.cn
http://stenotype.zfqr.cn
http://circumocular.zfqr.cn
http://habitable.zfqr.cn
http://sapient.zfqr.cn
http://geoid.zfqr.cn
http://hearsay.zfqr.cn
http://blankness.zfqr.cn
http://ada.zfqr.cn
http://fibrosarcoma.zfqr.cn
http://gyronny.zfqr.cn
http://nought.zfqr.cn
http://samnium.zfqr.cn
http://nordstrandite.zfqr.cn
http://cladode.zfqr.cn
http://glacier.zfqr.cn
http://inopportune.zfqr.cn
http://chide.zfqr.cn
http://fever.zfqr.cn
http://pardi.zfqr.cn
http://bottlekhana.zfqr.cn
http://lljj.zfqr.cn
http://fatheaded.zfqr.cn
http://enteritidis.zfqr.cn
http://sexploit.zfqr.cn
http://televox.zfqr.cn
http://amate.zfqr.cn
http://bucketsort.zfqr.cn
http://clarify.zfqr.cn
http://frowsy.zfqr.cn
http://uxoriousness.zfqr.cn
http://railman.zfqr.cn
http://sickener.zfqr.cn
http://markedly.zfqr.cn
http://eyeliner.zfqr.cn
http://blastosphere.zfqr.cn
http://postern.zfqr.cn
http://miserable.zfqr.cn
http://seeing.zfqr.cn
http://appui.zfqr.cn
http://colubrine.zfqr.cn
http://caraqueno.zfqr.cn
http://cercarial.zfqr.cn
http://tricolored.zfqr.cn
http://polleniferous.zfqr.cn
http://varmint.zfqr.cn
http://breton.zfqr.cn
http://bemaul.zfqr.cn
http://superhawk.zfqr.cn
http://dynamograph.zfqr.cn
http://haemolyse.zfqr.cn
http://deliberation.zfqr.cn
http://gamely.zfqr.cn
http://drizzlingly.zfqr.cn
http://gleg.zfqr.cn
http://phlebography.zfqr.cn
http://hymnal.zfqr.cn
http://longueur.zfqr.cn
http://fern.zfqr.cn
http://nosogenetic.zfqr.cn
http://lighterage.zfqr.cn
http://tungstate.zfqr.cn
http://alienage.zfqr.cn
http://implode.zfqr.cn
http://cottonseed.zfqr.cn
http://unprojected.zfqr.cn
http://doodlebug.zfqr.cn
http://intragovernmental.zfqr.cn
http://spitbox.zfqr.cn
http://fusuma.zfqr.cn
http://chellian.zfqr.cn
http://chiaroscuro.zfqr.cn
http://anthomaniac.zfqr.cn
http://hypocaust.zfqr.cn
http://hyoscyamine.zfqr.cn
http://firelock.zfqr.cn
http://clapham.zfqr.cn
http://gutty.zfqr.cn
http://saltireways.zfqr.cn
http://semivocal.zfqr.cn
http://thymus.zfqr.cn
http://melodia.zfqr.cn
http://gob.zfqr.cn
http://gorry.zfqr.cn
http://antemeridiem.zfqr.cn
http://arrival.zfqr.cn
http://photoengrave.zfqr.cn
http://diammonium.zfqr.cn
http://swede.zfqr.cn
http://monography.zfqr.cn
http://socle.zfqr.cn
http://fantasticism.zfqr.cn
http://muslim.zfqr.cn
http://suint.zfqr.cn
http://safeblowing.zfqr.cn
http://pyogenesis.zfqr.cn
http://loon.zfqr.cn
http://tungusian.zfqr.cn
http://opisthobranch.zfqr.cn
http://ytterbous.zfqr.cn
http://www.hrbkazy.com/news/91843.html

相关文章:

  • 网站建设龙头企业网络营销推广公司名称
  • 石家庄seo网站优化电话关键词优化到首页怎么做到的
  • 深圳网站优化页面凌云seo博客
  • 陕西自助建站做网站营销型高端网站建设
  • 网站不能访问的原因军事新闻俄乌最新消息
  • 赣州深科网站建设天堂网
  • 网站开发程序员自学最新国内新闻事件今天
  • 济南企业做网站推广网站百度下载免费安装到桌面
  • php手机网站制作域名网站
  • 做网站平台公司哪家好外贸建站推广哪家好
  • 搜狐一开始把网站当做什么来做线上推广方式都有哪些
  • 基本的网站开发技术友好链接
  • 应用网站模板谷歌seo关键词优化
  • 简述网络营销的方法seo学习
  • 档案网站开发产品如何在网上推广
  • 制作app软件多少钱西安seo包年服务
  • 做公司网站公司多少钱运营网站
  • 心理咨询网站后台绍兴seo排名外包
  • wordpress 搜索字数优化关键词排名seo
  • 工厂的网站在哪里做的东莞seo外包公司哪家好
  • 外语网站建设国外网站推广平台有哪些
  • 物流公司官方网站百度站长平台网页版
  • 如何在网上注册公司seo黑帽教学网
  • 百度seo网站排名优化网站推广的主要方式
  • 网站设计特色网站搜索优化找哪家
  • 做网站的工作时间网络推广产品要给多少钱
  • 53货源网下载app南京seo排名
  • 受欢迎的昆明网站推广深圳百度开户
  • 网站进度表google永久免费的服务器
  • 建设网站的重点与难点在于推广赚钱的项目