[Interest] [Qt6] QML automatic type registration in a (shared) library

Ulf Hermann ulf.hermann at qt.io
Fri Jan 14 15:14:49 CET 2022


Is the place where the module's qmldir ends up reachable via the QML 
import path? If you're linking the library into the application, you may 
just add :/ to your import path so that it's loaded from the qrc file 
system right away. Be aware that some linkers just drop the linkage if 
they perceive it to be "unused", though. Otherwise, if the module ends 
up in C:/foo/bar/Tsc/Ui/, then you need to add C:/foo/bar/ to the import 
path.

best regards,
Ulf


More information about the Interest mailing list