- Category:
- ADO-ODBC
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2015-05-03
- Downloads:
- 0 Times
- Uploaded by:
- wfwjp
Description: bool zzzz::exporttocsv(QSqlQueryModel* view, QString fileName)
{
//单行插入文本文档
if (fileName.isEmpty())
return false
QFile file(fileName)
if (file.open(QIODevice::WriteOnly))
{
QTextStream stream(&file)
int cc=view->columnCount()
QStringList list
for (int i=0 i<view->rowCount() i++)
{
list.clear()
To Search:
File list (Check if you may need any files):
exporttocsv.txt