Qt Jenny 已知问题

Qt Jenny 1.0

  • Qt Jenny 生成纯头文件代码。这样做是为了利用QJniObject 中的模板功能,以及使用某些QJniObject 函数的推导返回类型,并在Qt Jenny 生成的代码中公开这些推导返回类型。我们希望保持这种方式。
  • 生成的代码不是强类型的。如果您有一个函数需要两个不同的 Java 类型作为参数,调用代码需要以正确的顺序传递正确的对象,而错误则会导致运行时错误。我们希望在Qt Jenny 1.1 中取消这一限制,使生成参数具有强类型的代码成为可能,而参数顺序的错误则是编译错误。
  • 不支持用 C++ 实现 Java 接口。我们希望在Qt Jenny 1.1 中取消这一限制,使生成实现 Java 接口 API 的 C++ 基类成为可能,并允许用户继承此类基类,然后将其派生类对象作为 Java 接口对象传递给强类型生成的 API。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.