Results 1 to 2 of 2

Thread: how to export data to a .CSV file

  1. #1
    Join Date
    Apr 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default how to export data to a .CSV file

    Hi all.

    I am making a small database application. After executing the query I displayed this information in a different graphics, finally I need export this information to a csv file.

    Does anyone know how can I do it?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: how to export data to a .CSV file

    You write each value to a file and separate them by a comma

    See the examples and documentation of QFile, QTextStream etc...

Similar Threads

  1. Replies: 16
    Last Post: 28th April 2020, 14:40
  2. QT Sqlite database import/ export csv file
    By logesh in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2010, 05:35
  3. How to export data from QTableView to Ms Excell
    By joseph in forum Qt Programming
    Replies: 2
    Last Post: 19th February 2009, 14:19
  4. Replies: 3
    Last Post: 12th June 2008, 11:59
  5. Help:Export QGraphicsView to Image File
    By cometyang in forum Qt Programming
    Replies: 5
    Last Post: 26th December 2007, 23:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.