qslite专题

qslite QSqlError(, Driver not loaded, Driver not loaded)

QSqlQuery如果是类的成员变量,执行报标题的错。但是临时变量,反而能执行,原因未知。bool bRet = m_database.open();QString create_sql = "create table student (id int primary key, name varchar(30), age int)";QSqlQuery query;bRet = query.