Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Performance issue with accessing QVariantMap in QML
Qt 6.12 LTS is out! See what's new in the release blog

Performance issue with accessing QVariantMap in QML

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 3.0k 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.
  • T Offline
    T Offline
    tuanster
    wrote on last edited by
    #1

    I have a simple component that reads in a JSON file, then passes it to a QScriptEngine and returns a QVariant (which is actually a QVariantMap) in a C++ plugin. In my QML code, I can access the returned value using scripting notation.

    The issue then is that the access time into the script object becomes increasingly longer as the JSON file gets bigger. Therefore the application performance deteriorates in a hurry.

    I really don't want to break up my JSON file into several smaller ones.

    What's the best way to solve this issue?

    Thanks for any help provided.

    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
    • Unsolved