Hi.

I tried a tipical:
Qt Code:
  1. bool MainWindow::connecToDB(){
  2. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
  3. db.setHostName("http://localhost");
  4. db.setDatabaseName("name");
  5. db.setUserName("user");
  6. db.setPassword("password");
  7. if(!db.open()){
  8. QMessageBox msgBox;
  9. msgBox.setModal(true);
  10. msgBox.setText("Error ...");
  11. msgBox.exec();
  12. return false;
  13. }
  14. return true;
  15. }
To copy to clipboard, switch view to plain text mode 

I came to the error:
Qt Code:
  1. QSqlDatabase: QMYSQL driver not loaded
  2. QSqlDatabase: available drivers: QSQLITE QSQLITE2 QPSQL7 QPSQL
To copy to clipboard, switch view to plain text mode 

I suppose this has something to do with the license restrictions for driver included in Qt?

I am using Debian/GNU LInux and i installed Qt with this Source Package: qt4-x11 (4.4.3-1).

How do i install the driver?

Thanks