Steps I did to get it compile on WinXP + Qt 4.1.2:
- converted form.ui to qt4
- sql1.pro, added line "QT += qt3support sql"
- main.cpp, fixed include:
#include "ui_form.h" // note "ui_" prefix
#include "ui_form.h" // note "ui_" prefix
To copy to clipboard, switch view to plain text mode
- main.cpp, fixed ui loading (direct approach):
Q3MainWindow w;
Ui_Form ui;
ui.setupUi(&w);
w.show();
Q3MainWindow w;
Ui_Form ui;
ui.setupUi(&w);
w.show();
To copy to clipboard, switch view to plain text mode
- conexion.cpp, fixed includes:
#include <q3datatable.h> // qt3support
#include <q3sqlcursor.h> // qt3support
#include "ui_form.h" // note "ui_" prefix
#include <qsqlerror.h> // added
#include <q3datatable.h> // qt3support
#include <q3sqlcursor.h> // qt3support
#include "ui_form.h" // note "ui_" prefix
#include <qsqlerror.h> // added
To copy to clipboard, switch view to plain text mode
- conexion.cpp, fixed defaultDB variable:
either:
// and replace occurrences of "defaultDB->" to "defaultDB."
QSqlDatabase defaultDB; // remove '*'
// and replace occurrences of "defaultDB->" to "defaultDB."
To copy to clipboard, switch view to plain text mode
Edit: Not that it'd be fully working, but at least it compiles.
Bookmarks