[Qt-qml] How plugin paths should work
Matthias Ettrich
matthias.ettrich at nokia.com
Sat Aug 7 15:15:52 CEST 2010
On Friday 06 August 2010 09:14:44 ext Jyrki Hämäläinen wrote:
> Hello everyone,
>
> We are trying to build a suite of applications with QML.
> Some of the applications need to share C++-plugins.
>
> Also to enhance the structure of the application, some applications use
> subfolders to group related qml-files into modules.
>
> The application structure would be like this
>
> /xxx/qmlapp/main.qml --> plugin_a, module1/mod1_a.qml, module1/mod1_b.qml
> /xxx/qmlapp/qmldir
> /xxx/qmlapp/module1/mod1_a.qml --> plugin_a
> /xxx/qmlapp/module1/mod1_b.qml
> /xxx/qmlapp/module1/qmldir
>
> /yyy/libs/libplugin_a.so
>
>
> Where
> main.qml uses 'import "module1"', to import qml files in subfolder module1.
> main.qml ja qml-module located in the subfolder use the shared plugin.
>
> Also qmldir files have content as follows
> /xxx/qmlapp/qmldir:
> plugin plugin_a
That's the part which I don't get. There's no need to put "plugin plugin_a"
into several qmldir files. Qt reads the module1/qmldir if you import module1.
This might be the source of confusion.
If removing this line does not help, please send a stripped down example to
help us debugging your case.
[snip]
Best regards,
Matthias
More information about the Qt-qml
mailing list