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. QTableWidget with large dataset
Qt 6.11 is out! See what's new in the release blog

QTableWidget with large dataset

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 546 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.
  • M Offline
    M Offline
    Mark_AM
    wrote on last edited by
    #1

    I am trying to make a QTableWidget that allows for very large data sets. Is there anyway to only grab the items that the user can see currently from a database and only grab the new data once the user has scrolled down so that performance is improved?

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

      Hi,

      Why a QTableWidget if you have a database ? A QTableView combined with a QSqlTableModel or even a QSqlQueryModel would allow you to load smaller amounts of data. You can then implement a moving window to get data of interests.

      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
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved