Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Type Registration - Import only one sub-module?
QtWS25 Last Chance

QML Type Registration - Import only one sub-module?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 166 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NaLogoN Offline
    NaLogoN Offline
    NaLogo
    wrote on last edited by NaLogo
    #1

    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?

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved