美文网首页
部署QT程序

部署QT程序

作者: ww4u | 来源:发表于2018-03-07 18:30 被阅读0次
    • 主打跨平台的QT,部署也需要有一定的流程
    • 拷贝编译器下的依赖库到程序的相同目录下,用到多少拷多少
    image.png
    • 库依赖可以使用depends工具查看
    • 拷贝plugins到程序目录,并编写一个 qt.conf 可以为空
      • plugins目录下的文件名称和开发包保持一致
      • 定义一个qt.conf 是为了QtLibraryInfo 能够将当前目录添加到搜索路径中,如果plugins目录名称不是"plugins"则需要添加
    Plugins = ./your_plugin目录
    
    • 对于UI程序,至少需要 plugins/platforms目录下的文件

    To deploy the application, we must make sure that we copy the relevant Qt DLLs (corresponding to the Qt modules used in the application) and the Windows platform plugin, qwindows.dll, as well as the executable to the same directory tree in the release subdirectory.

    相关文章

      网友评论

          本文标题:部署QT程序

          本文链接:https://www.haomeiwen.com/subject/wuksfftx.html