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 plugin using Ahead of Time compiler
Forum Updated to NodeBB v4.3 + New Features

QML plugin using Ahead of Time compiler

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 157 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    loiczimmermann
    wrote on 13 Apr 2021, 07:15 last edited by
    #1

    Hi,

    I'm facing an issue when trying to compile my QML plugin with QuickCompiler. I have a few QML plugin with reusable component. Up to now I wasn't building the QML and using the qmlcache to build QML at run time. Now I want to use the QuickCompiler in order to build everything on my CI. For that I update my CMake to have:

    qtquick_compiler_add_resources(RESOURCES qml.qrc)
    

    And then

    add_executable(... ${RESOURCES })
    

    All the compilation work well. I see that all file that should be compiled are compiled correctly. When starting I see that even although I have built all QML I see that the qmlcache is regenerating making me think that the compiled QML is not used at all. I tried to move all QML in the executable (not using QML plugin), in this case it's working correctly (no qmlcache created). But as soon as I try to load QML from a plugin, the qmlcache is generated.

    I have the feeling that I miss something when loading the QML plugin. Has anyone already used QuickCompiler in a QML plugin ?

    Thank you for your help

    1 Reply Last reply
    0

    1/1

    13 Apr 2021, 07:15

    • Login

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