摘要:
/* //文件读取 QFile f("c:\\t.txt"); if(!f.open(QIODevice::WriteOnly | QIODevice::Text)) { qDebug() << "Open failed"; return -1; } QTextStream txtOutput(&f); QString s1("123"); quint32 n1(123); txtOutput << s1 << " " << "caichao&quo 阅读全文
摘要:
环境:静态编译过sqlite步骤:1.C++链接器中加入Sqlite.lib,然后在测试一下是否能正常加载Sqlite驱动#includeQ_IMPORT_PLUGIN(sqlite)测试打印:QStringList dirvers = QSqlDatabase:drivers();qDebug() dos下启动sqlitesqlite3.ext test.db#查看数据库.databases>dos下执行sql命令sqlite3.exe test.db dos下dump命令sqlite3.exe test.db .dump > test.sql>加载数据库attach da 阅读全文