如何在 SparxSystems Enterprise Architect 中集成 Qt 库

发布于 2024-08-04 11:28:09 字数 284 浏览 6 评论 0原文

我想知道如何将 Qt 库集成到 Enterprise Architect 项目中。我不知道是否可能,但我尝试了部分成功:

我向我的项目添加了一个新包,尝试通过上下文菜单/代码工程/导入源目录导入qt,并从目录 src/corelib/kernel 开始。将相当多的 qt 预处理器宏添加到 EA 预处理器宏列表后,一些类已正确导入,但并非全部。例如,尽管我将 Q_SIGNALS 宏添加到了 EA 列表中,但我还是收到了错误。

这里有人尝试过成功吗?如果是的话,您能给我一些如何做到这一点的提示吗?

谢谢!

I like to know how one can integrate the Qt libraries into an Enterprise Architect project. I do not know if it is possible at all but I tried it with partial success:

I added a new package to my project tried to import qt through Context Menu / Code Engineering / Import Source Directory and started with the directory src/corelib/kernel. After adding quite a lot qt preprocessor macros to the EAs preprocessor macros list some classes were correctly imported but not all. E.g. I get errors on the Q_SIGNALS macro although I added it to EAs list.

Did anybody here tried that with success? And when yes can you give me some hints how to do that?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

书间行客 2024-08-11 11:28:09

我转向 [email protected] ,他们的回答:

“谢谢您的查询。
不,不幸的是,目前还没有简单的方法将 Enterprise Architect 与 Qt 集成。

对于大多数框架,我们通常建议将框架逆向工程到 Enterprise Architect 中,从而允许您引用框架定义的类/接口。

听起来您提供的链接中的用户已经尝试过此操作,但由于此代码中使用了大量预处理器宏而遇到了困难。
抱歉,我们无法提供更多帮助。”

也许我可以得到您的进口包裹?

I turned to [email protected] , their answer:

"Thank you for your enquiry.
No, unfortunately there is no easy way to integrate Enterprise Architect with Qt at this time.

With most frameworks, we typically recommend reverse engineering the framework into Enterprise Architect, allowing you to reference the classes / interfaces defined by the framework.

It sounds like the user in the link that you provided has already attempted this, but had difficulties due to the large number of Preprocessor macros used in this code.
Sorry we could not be of more assistance."

Maybe I can get your import package ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文