Results 1 to 4 of 4

Thread: QTableView and Large data sets

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableView and Large data sets

    What do you mean with "load the data into a QAbstractItemModel"?
    Usually the model is only the interface to the data.

    How does your application store and access the data?

    Cheers,
    _

  2. #2
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: QTableView and Large data sets

    The data is stored as 32 byte binary records on the disk after being read from the acquisition card.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableView and Large data sets

    If the data format allows you to determine file position based on the index of a record, then you could create a model that access the data in the file directly.

    Potentially using a memory mapped file and/or caching some records in memory.

    E.g. some header offset aside, if the first record starts at 0*32 and the second starts at 1*32 and so on, then you can simply determine the model's row count by fileSize/32.
    And the model's data can simply seek to index.row() * 32 to retrieve the record.

    Cheers,
    _

Similar Threads

  1. Replies: 5
    Last Post: 2nd July 2012, 20:49
  2. Need help with QTableView/QTableWidget and large data
    By aguayro in forum Qt Programming
    Replies: 2
    Last Post: 29th June 2012, 12:09
  3. Replies: 1
    Last Post: 23rd September 2010, 05:45
  4. Replies: 1
    Last Post: 23rd December 2008, 15:42
  5. Creating images from sets of data.
    By maverick_pol in forum Qt Programming
    Replies: 5
    Last Post: 26th February 2008, 09:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.