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. Extract data from CSV file and put it in a Qstringlist
Qt 6.11 is out! See what's new in the release blog

Extract data from CSV file and put it in a Qstringlist

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 563 Views
  • 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.
  • D Offline
    D Offline
    dziko147
    wrote on last edited by
    #1

    Hello ,
    I displayed a CSV fie in a tablewidget . then i want to extract column 1 data and put it in a QstringList .
    How Can i do this
    thank you

    jsulmJ 1 Reply Last reply
    0
    • D dziko147

      Hello ,
      I displayed a CSV fie in a tablewidget . then i want to extract column 1 data and put it in a QstringList .
      How Can i do this
      thank you

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dziko147 Such questions where asked often here, you should use the search function.
      Read the file line by line, split each line using QString::split() and read the first element from the resulting list.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • D Offline
        D Offline
        dziko147
        wrote on last edited by
        #3

        @jsulm thank you :)

        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