QT访问数据库简单代码 #include #include #include #include /* #include #pragma comment(dll, "qsqlmysql.dll") Q_IMPORT_PLUGIN(qsqlmysql) */ int main(int argc,