4.2.2 on XP with mingw32:
this section of code works fine if I run the .exe on the machine where it was compiled:
QSqlConnectionDialog::QSqlConnectionDialog(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
QStringList drivers = QSqlDatabase::drivers();
ui.comboDriver->addItems(drivers);
}
however, I would like to use my program on other machines and after copying the .exe (and all the dll's that it asks for: QtGuid4.dll, QtCored4.dll, QtSqld4.dll) to a different PC the line:
QStringList drivers = QSqlDatabase::drivers();
returns an empty QStringList.
In other words: 'QSqlDatabase::drivers().isEmpty()' is true.

I know it's probably a stupid question but if I just need the "QODBC" driver what do i need to do to either:
1 - incorporate the QODBC driver with the .exe, or
2 - find the correct .dll (where is this driver anyway? I tried the one from 'C:\Qt\4.2.2\plugins\sqldrivers' unsuccessfully) to copy it along with the rest, or
3 - make my own (?)