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 Cache Generated Even When QML Compilation is Enabled
Forum Updated to NodeBB v4.3 + New Features

QML Cache Generated Even When QML Compilation is Enabled

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 406 Views 2 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.
  • Q Offline
    Q Offline
    QtEnjoyer2008
    wrote on last edited by
    #1

    Hello Qt Community,

    I am currently working on a Qt project where I have enabled QML compilation using the qt_add_qml_module function in my CMakeLists.txt to precompile my QML files into the final binary. However, I've noticed that the QML cache files (*.qmlc) are still being produced during runtime in the qmlcache directory, which I did not expect since my understanding was that the QML source would be directly compiled into the binary.

    I was under the impression that by using qt_add_qml_module, the QML files would be completely compiled and not need any caching at runtime. Is it expected behavior for the QML cache to be generated even when QML compilation is enabled?

    Any insights or recommendations on how to address this would be greatly appreciated.

    sierdzioS 1 Reply Last reply
    0
    • Q QtEnjoyer2008

      Hello Qt Community,

      I am currently working on a Qt project where I have enabled QML compilation using the qt_add_qml_module function in my CMakeLists.txt to precompile my QML files into the final binary. However, I've noticed that the QML cache files (*.qmlc) are still being produced during runtime in the qmlcache directory, which I did not expect since my understanding was that the QML source would be directly compiled into the binary.

      I was under the impression that by using qt_add_qml_module, the QML files would be completely compiled and not need any caching at runtime. Is it expected behavior for the QML cache to be generated even when QML compilation is enabled?

      Any insights or recommendations on how to address this would be greatly appreciated.

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @QtEnjoyer2008 I don't know the answer but I'd be interested in learning that :-)

      One suggestion: maybe try on Qt mailing list (interest or develop), that is where developers of Qt itself hang out. You are more likely to get an answer directly from the source. And if you do, please link it here :-)

      (Z(:^

      1 Reply Last reply
      0

      • Login

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