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. How to write a data into csv file colmn by column
Servers for Qt installer are currently down

How to write a data into csv file colmn by column

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 173 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.
  • S Offline
    S Offline
    swapna v
    wrote on 20 Aug 2023, 11:31 last edited by
    #1

    Hello All,

    how to write data to multiple columns in CSV file. i want write some data in Columns . how to write?
    I have used QTextstream.
    I can able to write a data up to 2 columns. however its printing continuously CPU2,CPU3 data(Red Colour) .
    Actual output should be column by column (Green color)

    Kindly suggest me how to write date in multiple columns
    Capture.PNG

    Regards,
    Swapna

    J 1 Reply Last reply 20 Aug 2023, 12:44
    0
    • S swapna v
      20 Aug 2023, 11:31

      Hello All,

      how to write data to multiple columns in CSV file. i want write some data in Columns . how to write?
      I have used QTextstream.
      I can able to write a data up to 2 columns. however its printing continuously CPU2,CPU3 data(Red Colour) .
      Actual output should be column by column (Green color)

      Kindly suggest me how to write date in multiple columns
      Capture.PNG

      Regards,
      Swapna

      J Offline
      J Offline
      JonB
      wrote on 20 Aug 2023, 12:44 last edited by
      #2

      @swapna-v
      There isn't much to say. Build each line output as comma-separated values from the columns.in a loop. No reason for it to stop at 2 columns, and nobody can say why you say "printing continuously". Your output seems to show you are saving columns as multiple lines. You don't show your produced CSV file, you don't show the code you write.

      1 Reply Last reply
      1

      1/2

      20 Aug 2023, 11:31

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved