Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74568

Resource system backend for Qt on WebAssembly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • None
    • Core: Resource System
    • None

      It does not make much sense to pipe (large) resource sets though the Wasm compilers.

      Instead, resource files can be copied to the in-memory file system provided by emscripten, where they can be accessed using standard file API. The Qt resource system will then map qrc paths to filesystem paths, e.g. ":/foo" -> "/qt_resources/foo".

      Build flow:

      1. QRC copies resources to a qt_resources/ dir (on the host/build machine), instead of creating qrc_.o files
      2. The emscripten file packing feature is used to populate the filesystem: "em++ --preload-file qt_resources/"

        For Gerrit Dashboard: QTBUG-74568
        # Subject Branch Project Status CR V

            piwierci Piotr Wierciński
            sorvig Morten Sørvig
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Tor Arne Vestbø Tor Arne Vestbø
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change