qml - 如何在调试中创建 qmltypes 文件
问题描述
我在调试模式下构建了一个扩展插件当我尝试运行 qmlplugindump 我得到
QQmlComponent: Component is not ready
file:///C:/Qt/Examples/Qt-5.12.0/qml/qmlextensionplugins/imports/typelist.qml:3:1: plugin cannot be loaded for module "TimeExample": The plugin 'C:/Qt/Examples/Qt-5.12.0/qml/qmlextensionplugins/imports/TimeExample/qmlqtimeexampleplugin.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)
如何在调试扩展上运行 qmlplugindump?
谢谢
解决方案
如果您只想使用调试库,请在 release 中创建库并生成 plugins.qmltypes。然后将它与调试库一起使用。这在我的环境中有效。
推荐阅读
- python - 对分组数据中的值进行排名
- node.js - 回调函数在 async.foreachlimit 上的 watefall 中未按预期工作
- intellij-idea - JetBrains IDE - 跳出括号/跳到表达式末尾的快捷方式
- space-complexity - 空间复杂性 - 删除非主导项
- python - 将 Qpixmap 从一个窗口发送到另一个窗口
- java - application.yml 和 @value
- crystal-lang - 如何在 Crystal 中解析 JSON 中的 Int 和 Float?
- java - 如何在硒中的chrome浏览器模式(身份验证器)上单击允许/阻止?
- node.js - dApp : Web3.eth.getCoinbase(function(err, account) 没有从 metamask 显示我连接的 rinkeby 帐户
- image - 如何在python和sagMaker中将字节数组编码为recordIO protobuf格式