diff options
Diffstat (limited to 'Qt/main.cpp')
-rw-r--r-- | Qt/main.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Qt/main.cpp b/Qt/main.cpp new file mode 100644 index 0000000..6de43ac --- /dev/null +++ b/Qt/main.cpp @@ -0,0 +1,27 @@ +#include "mainwindow.h" +#include "main.h" +#include "./ui_mainwindow.h" + +#include <QApplication> +#include <QMessageBox> +#include <iostream> +#include <stdio.h> + +QSqlDatabase dbRef = QSqlDatabase(); + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; +// dbRef = new QSqlDatabase(); + dbRef = QSqlDatabase::addDatabase("QMYSQL"); + + + + w.show(); +// QMessageBox::information(NULL, "AAAAAAAAA", dbRef.driverName().toStdString()); + std::cout << "AAAAAAAA: \"" << dbRef.driverName().toStdString() << "\"\n"; + fflush(0); + return a.exec(); + +} |