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. About data model and data storage

About data model and data storage

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 646 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.
  • _ Offline
    _ Offline
    _Mark_
    wrote on last edited by
    #1

    Hello,
    I'd like to discuss the best way to store and handle data. Currently I acquire real-time data from the field using different channels (i.e. rs232, ethernet, user interface, etc...). I have a struct which is a "snapshot" of the system at the current time.

    I do two things with this struct:

    1. show the content on a table
    2. log into a file (each time the struct changes or on specified intervals)

    My questions are:

    a) I would use a model-based QTableView to how the data. How to organized the struct and the model class? I'm talking about both the model class and the I/O class should access to the struct and I wonder where and how to declare it.

    b) is the struct the recommended way? Do you suggest something else?

    Thanks!
    Mark

    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