Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. qml plugin开发,生成静态插件加载
Qt 6.11 is out! See what's new in the release blog

qml plugin开发,生成静态插件加载

Scheduled Pinned Locked Moved Unsolved Chinese
2 Posts 2 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sjls
    wrote on last edited by sjls
    #1

    用qt静态环境开发,现有qml plugin开发需求,官方帮助文档好像没有关于qml plugin静态库开发资料。我查阅了QT plugin的帮助资料显示支持静态编译。
    我根据Qt plugin加载方式,在pro文件下导入LIBS,在mian.cpp中include<QPLUGIN>后用宏Q_IMPORT_PLUGIN()方式加载qml的plugin。
    尝试一直没有成功,请问

    • qml plugin支持静态开发么?
      我搜索了好多资料,很多人说qml plugin不支持静态开发,想确认下。

    • 若支持静态开发,生成的lib文件如何在工程中加载?
      使用qt creator生成的qml plugin项目生成静态库时配置文件及plugin.cpp文件要做响应的调整,具体如何操作?

    1 Reply Last reply
    0
    • jiancaiyangJ Offline
      jiancaiyangJ Offline
      jiancaiyang
      wrote on last edited by
      #2

      Qt QML支持静态开发。
      要做一些调整。这里可能变得有些复杂。简单来说,除了Q_IMPORT_PLUGIN外,还需要使用一些qmlEngine->registerTypes等等操作。具体我记不清了,总之没有那么容易。

      我们自己的论坛:http://qtdream.com
      擅长三维角色仿真动画。

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved