[Interest] (Q)Plugins and QML/Quick
ruilvo at hotmail.com
Sat Sep 25 15:16:55 CEST 2021
I've done a repo with a (poorly made) example of what I'm trying to
achieve, using widgets.
Feel free to give some comments:
Às 07:06 de 15/09/2021, Ulf Hermann escreveu:
>> But my goal is to not know about the types beforehand at all. It's
>> basically the "copy the dll to the application folder and it'll
>> magically show up as an option" pattern. The goal is to provide an
>> extensibility framework, like eclipse, or web browser addons. Not
>> just using a type defined elsewhere.
> There is Loader . You can define some convention on where the entry
> point to a module is to be found, and construct a URL for Loader out
> of that. Then you can scan the relevant QML import paths and record
> the available modules. The result can be presented as a menu.
> Mind that loading a QML file directly from the host file system
> prevents you from using the pre-compiled byte code in the plugin.
> Therefore, the entry points should probably only do a named import of
> their module and instantiate some other type made available that way.
>  https://doc.qt.io/qt-5/qml-qtquick-loader.html
> Interest mailing list
> Interest at qt-project.org
More information about the Interest