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. Model / View update efficiency in QML?
Forum Updated to NodeBB v4.3 + New Features

Model / View update efficiency in QML?

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

    I am noticing something odd - making changes to a C++ model takes as much time to update the UI representation of the model as entirely resetting the model.

    This leads me to assume model / view updating is not really optimized and does all the work every time there is a change instead of just track and update the changes only.

    Can perhaps someone shed some light on the subject?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Part of it depends on how you send the information about what you have changed. I've typically saw code where rather that calculating the right dataChanged range some developer where sending the whole model so in such cases there's indeed an impact.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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