[Development] Using qml.exe with a custom QML_ELEMENT plugin

Ulf Hermann ulf.hermann at qt.io
Wed Oct 25 12:52:41 CEST 2023


> According to dependency scanner it depends on Qt6Qml.dll, Qt6Core.dll 
> and World.dll. All of these should be either be available from Qt or 
> from the additional import path I provided. Even when copying the dlls 
> into the directory, I get the same error.

This is not about the import path but about the windows dynamic linker 
being unable to load any library that's not in PATH or next to the 
application. The application, in this case is the "qml" tool in Qt. 
That's unfortunate, but this is just how it is on windows. It's not 
specific to QML modules Any library that's not next to your application 
has this problem. We have deployment tooling to deal with this.

best regards,
Ulf


More information about the Development mailing list