QML Type Registration - Import only one sub-module?
Unsolved
QML and Qt Quick
-
Hello.
I recently migrated from the old QML type registrations to the modern ones, using QML_ELEMENT and similar macros in my C++ classes that I want to expose to QML.
They are all grouped under one module for the entire app. Previously, I was able to import individual sub-modules like so:
import my.app.uri.submodule 1.0;
But this does not seem to work anymore when registering my classes using the new macros.
Is it even possible to only import a sub-module in a QML file when using the new type registration? And if so, how does one go about doing that?