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

Günter Schwann guenter at vikingsoftware.com
Fri Jan 14 15:42:38 CET 2022


Hi,

I did come across some similiar issue. And my solution was to add the resource as import path.

qmlEngine->addImportPath(":/");

In case you don't have NO_PLUGIN, tou probably need to link to the generated "TscUiplugin" as well.

Regards


--

Guenter Schwann
Viking Software
http://www.vikingsoftware.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220114/8a30b80a/attachment.htm>


More information about the Interest mailing list