Hi

I have the following code :

Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include <QDebug>
  4. #include <QSqlDatabase>
  5. #include <QSqlQuery>
  6.  
  7.  
  8.  
  9. MainWindow::MainWindow(QWidget *parent) :
  10. QMainWindow(parent),
  11. ui(new Ui::MainWindow)
  12. {
  13. ui->setupUi(this);
  14. }
  15.  
  16. MainWindow::~MainWindow()
  17. {
  18. delete ui;
  19. }
  20.  
  21. void MainWindow::on_pushButton_clicked()
  22. {
  23.  
  24. QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
  25. db.setDatabaseName("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=d:/TEST");
  26. db.open();
  27. }
To copy to clipboard, switch view to plain text mode 

after pressing button I see the messages "

QSqlDatabase: QODBC driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7"

How to solve the problem ?
How to load the driver.

I use Windows 7 64bit.

Regards
Artur