为什么Qt Creator的核心是一个插件?
您是否有一个明确的解释为什么他们选择应用程序的核心作为像其他组件一样的插件,而不仅仅是一个基本的共享库? 除了设计的“酷”之外,我看不出任何明显的优势。
Do you have a clear explanation why they have chosen the core of the application to be a plugin like the other components, and not just a basic shared library?
I cannot see any clear advantages, besides the 'coolness' of the design.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从开发者那里得到了答案:
I got an answer from the developers themselves:
至于“为什么”我们只能猜测。在他们自己的文档中,他们指出:
因此,从这一点可以看出,这一选择是考虑到可扩展性而做出的。我不确定“为什么核心是一个插件?”的答案是否正确。不仅仅是“为什么不?”。如果您正在将应用程序创建为,正如他们所说,插件加载器,那么为什么不使其功能尽可能“轻”,并使核心也成为插件。
As to "why" we can only guess. In their own documentation they state:
So from this one could gather that this choice was made with extensibility in mind. I'm not sure if the answer to "why is the core a plugin?" is anything more than "why not?". If you are creating your application to be, as they say, a plugin loader, then why not keep it as "light" on functionality as possible and make the core a plugin as well.