PDA

View Full Version : how to export data to a .CSV file



qtprgrmr
26th May 2010, 16:17
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.

tbscope
26th May 2010, 16:22
You write each value to a file and separate them by a comma

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