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. Can all Qml files be loaded from memory?

Can all Qml files be loaded from memory?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 819 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.
  • Z Offline
    Z Offline
    Zingam
    wrote on last edited by
    #1

    We can load all Qml files (I mean .qml, .js and corresponding images) files from disk.
    We can use also the Qt resource system (put everything in a .qrc).

    Will loading everything from a memory work (as all resources .qml-s, images, .js-s are loaded by the application into memory)? I've tried this for a simple static file. What about a real application with lots of components, screens etc, even external JavaScript modules? Can this be done and how practical will it be?

    1 Reply Last reply
    0
    • timdayT Offline
      timdayT Offline
      timday
      wrote on last edited by
      #2

      One gotcha (admittedly extreme conditions): I have a Qt app with about 2GByte of resources (a LOT of jpgs and mp4 contents). Baking them into a qrc (for convenience) worked great on my 64bit desktops but failed on iOS, apparently because the qrc is accessed by memory mapping and there's not enough (contiguous) address space on 32bit iOS for the monster I had. Bit more at http://qt-project.org/forums/viewthread/41012/

      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