blob: 6de43ac13c1212f1a88d1f12704b1229f6b1451e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
}
|