Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Best strategy to update QTable view with data in real-time from different threads
Forum Updated to NodeBB v4.3 + New Features

Best strategy to update QTable view with data in real-time from different threads

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.8k 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
    umen242
    wrote on last edited by
    #1

    I have application that for now starting few threads ( like 5 – 10 ) to collect data from different source .
    They are separated from the main GUI thread so I don’t feel any slowness in the GUI and I can keep working while the background threads are working . all great .
    But now I like to be able to display the results in QTableView in my main GUI . the data is strings allots of them and it can have between 10,000 to 100,000 results that supposed to be upto 100,000 rows in the QTableView.
    My question is what is the best way to update the Table in the Main GUI from the threads so TH GUI won’t be slow or idle.

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _compiler
      wrote on last edited by
      #2

      http://doc.qt.digia.com/stable/qcontiguouscache.html

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umen242
        wrote on last edited by
        #3

        this is great but i need to display real time , not cache results , all data is new and unique to the app

        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