#els..._qt构建版本号">
当前位置:   article > 正文

Qt 添加版本信息_qt构建版本号

qt构建版本号
  • Pro文件下添加 
  1. RESOURCES += \
  2. resource.qrc
  3. RC_FILE += Res/version.rc
  • version.rc 
  1. IDI_ICON1 ICON DISCARDABLE "app.ico"
  2. #pragma code_page(65001)
  3. #if defined(UNDER_CE)
  4. #include <winbase.h>
  5. #else
  6. #include <winver.h>
  7. #endif
  8. VS_VERSION_INFO VERSIONINFO
  9. FILEVERSION 1,0,0,10
  10. PRODUCTVERSION 1,0,0,10
  11. FILEFLAGSMASK 0x3fL
  12. #ifdef _DEBUG
  13. FILEFLAGS VS_FF_DEBUG
  14. #else
  15. FILEFLAGS 0x0L
  16. #endif
  17. FILEOS VOS__WINDOWS32
  18. FILETYPE VFT_DLL
  19. FILESUBTYPE 0x0L
  20. BEGIN
  21. BLOCK "StringFileInfo"
  22. BEGIN
  23. BLOCK "080404b0"
  24. BEGIN
  25. VALUE "CompanyName", "木"
  26. VALUE "FileDescription", "软件描述"
  27. VALUE "FileVersion", "1.0.0.10\0"
  28. VALUE "ProductVersion", "1.0.0.10\0"
  29. VALUE "LegalCopyright", "合法版权\0"
  30. VALUE "LegalTrademarks", "合法"
  31. VALUE "OriginalFilename", "version.exe\0"
  32. VALUE "ProductName", "软件名称"
  33. VALUE "InternalName", "version.exe\0"
  34. END
  35. END
  36. BLOCK "VarFileInfo"
  37. BEGIN
  38. VALUE "Translation", 0x804, 1200
  39. END
  40. END

  • 设置app左上角图标 
    this->setWindowIcon(QIcon(":/image/Res/app.ico"));

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/104566
推荐阅读
相关标签
  

闽ICP备14008679号