QSqlDatabase: QPSQL driver not loadedQSqlDatabase: available drivers: QPSQL7 QPSQL QSQLITE QODBC3 QODBC
QLibrary("sqldrivers/qsqlpsql");library.load();qDebug() << library.errorString();
C++ (Qt)QSqlQuery query; if (!query.exec("CREATE TABLE test(test1 character(1), test2 integer) WITH (OIDS=FALSE); ALTER TABLE test OWNER TO postgres;")) { qDebug()<<query.lastError().text(); } else{ qDebug()<<"yes"; }