Wincker

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  QT

摘要:1. Generate pro file for the projectqmake -project2. Add the following script into the pro fileTRANSLATIONS = ***.ts3. Generate ts filelupdate ***.pro4. Use QT Linguist to edit the ts file5. Generate qm file in QT Linguist6. Use the qm in code#include <QTranslator>QTranslator translator( 0 );t 阅读全文
posted @ 2012-01-07 09:03 Wincker 阅读(148) 评论(0) 推荐(0)

摘要:1. Create a qrc file or copy & paste one from another project.2. Add the qrc file to vc project.3. Prepare image files and store them to a place close to qrc file, better be in the same directory with qrc file.4. Edit qrc file, key-in those image files' relative path as entries to qrc file, 阅读全文
posted @ 2011-10-03 10:12 Wincker 阅读(181) 评论(0) 推荐(0)