Answers for "connector odbc driver para qt"

0

connector odbc driver para qt

QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
db.setDatabaseName("Driver={MySQL ODBC 5.3 Unicode Driver};DATABASE=test;");
db.setUserName("root");
db.setPassword("password");
if (!db.open()) {
    qDebug() << db.lastError().text();
} else {
    qDebug("success");
}
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language