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,
_
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,
_
The data is stored as 32 byte binary records on the disk after being read from the acquisition card.
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,
_
Bookmarks