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. QAbstractTableModel Load CSV [SOLVED]

QAbstractTableModel Load CSV [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.1k 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.
  • E Offline
    E Offline
    elveatles
    wrote on last edited by
    #1

    Hi,
    I have got my table model working by subclassing and overriding the methods for manipulating the table (adding and removing rows and editing data). And now I'm trying to save and load from csv files. removeRows, insertRows, and setData seems like the wrong way to go for something that's going to completely replace all of the info on the table when loading a file, and I can't find a proper method for it. Can someone give me advice? Thank you.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      Hi,

      Try to study my library at "GitHub":https://github.com/Code-ReaQtor/qdsvtablemodel

      Happy coding!

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        elveatles
        wrote on last edited by
        #3

        Thanks for the push in the right direction. Looks like a reset was what I was looking for.

        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