摘要: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
阅读全文
随笔分类 - QT
摘要: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,
阅读全文

浙公网安备 33010602011771号