[英]QT for cross platform plugin development?
I have a pre-existing application, that calls out into a plugin library. 我有一个预先存在的应用程序,它可以调用插件库。 I want the plugin library to be developed in Qt, and to be able to display a Qt UI.
我希望插件库在Qt中开发,并能够显示Qt UI。
However, when I attempt to create a QWidget
it complains that the QApplication
needs to be created first. 但是,当我尝试创建
QWidget
它抱怨说需要先创建QApplication
。
Is it not possible to use Qt to develop cross platform plugins? 无法使用Qt开发跨平台插件吗?
Eg a netscape plugin for Chrome or Firefox. 例如,用于Chrome或Firefox的netscape插件。 I do not, and cannot, control the app's main loop.
我没有也不能控制应用程序的主循环。
如Qt文档中所述,任何使用Qt的GUI应用程序都需要将QApplication
创建到主线程中,因为它包含所有信号引擎和事件循环。
There is Qt/MFC Migration Framework that can help you to build plugins if the main application where the plugin is laoded is Win32 or Mfc. 如果将插件加载的主要应用程序是Win32或Mfc,则Qt / MFC迁移框架可以帮助您构建插件。 Qt/MFC Migration Framework
Qt / MFC迁移框架
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.