#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QDebug>
#include <QTranslator>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QTranslator translator;
bool load = translator.load(QString(":/hellotr_zh"));
qDebug() << load;
if(load){
bool install = app.installTranslator(&translator);
qDebug() << install;
}
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
没有合适的资源?快使用搜索试试~ 我知道了~
hello_i18n_qml
共66个文件
dll:37个
qm:16个
ts:2个
需积分: 10 13 下载量 42 浏览量
2016-06-20
16:48:25
上传
评论
收藏 19.6MB ZIP 举报
温馨提示
中文国际化Qt Quick Application类型工程的例子源代码和打包发布
资源推荐
资源详情
资源评论
收起资源包目录
hello_i18n_qml.zip (66个子文件)
hello_i18n_qml
hello_i18n_qml.pro.user 48KB
hellotr_zh.qm 119B
hellotr_i18n.ts 258B
hello_i18n_qml.pro 261B
bin_windeployqt
QtQuick.2
qtquick2plugin.dll 20KB
qmldir 111B
plugins.qmltypes 173KB
iconengines
qsvgicon.dll 43KB
libGLESV2.dll 2.19MB
qmltooling
qmldbg_debugger.dll 230KB
qmldbg_server.dll 68KB
qmldbg_profiler.dll 75KB
qmldbg_local.dll 24KB
qmldbg_native.dll 36KB
qmldbg_tcp.dll 25KB
qmldbg_inspector.dll 95KB
libEGL.dll 21KB
Qt5Svg.dll 350KB
bearer
qgenericbearer.dll 83KB
qnativewifibearer.dll 78KB
hello_i18n_qml.exe 20KB
D3Dcompiler_43.dll 2.01MB
Qt5Qml.dll 3.77MB
imageformats
qwbmp.dll 27KB
qjpeg.dll 246KB
qtiff.dll 485KB
qtga.dll 27KB
qico.dll 35KB
qgif.dll 33KB
qicns.dll 46KB
qsvg.dll 28KB
qdds.dll 58KB
qwebp.dll 358KB
Qt5Network.dll 1.53MB
QtQuick
Window.2
qmldir 122B
plugins.qmltypes 10KB
windowplugin.dll 20KB
platforms
qwindows.dll 1.41MB
libwinpthread-1.dll 48KB
libstdc++-6.dll 1002KB
Qt5Core.dll 5.11MB
opengl32sw.dll 14.52MB
translations
qt_fi.qm 209KB
qt_fr.qm 222KB
qt_ru.qm 211KB
qt_ko.qm 162KB
qt_ca.qm 170KB
qt_de.qm 232KB
qt_uk.qm 210KB
qt_en.qm 23B
qt_lv.qm 203KB
qt_hu.qm 89KB
qt_sk.qm 170KB
qt_cs.qm 155KB
qt_ja.qm 171KB
qt_he.qm 136KB
qt_it.qm 151KB
Qt5Quick.dll 3.65MB
libgcc_s_dw2-1.dll 117KB
Qt5Widgets.dll 6.19MB
Qt5Gui.dll 5.38MB
main.cpp 530B
qml.qrc 128B
hellotr_zh.ts 467B
main.qml 354B
deployment.pri 266B
共 66 条
- 1
资源评论
happyrabbit456
- 粉丝: 110
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功