You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
#include <QSqlDatabase>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
|
|
|
: QMainWindow(parent)
|
|
|
|
|
, ui(new Ui::MainWindow)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
// QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
|
|
|
|
|
// db.setHostName("acidalia");
|
|
|
|
|
// db.setDatabaseName("customdb");
|
|
|
|
|
// db.setUserName("mojito");
|
|
|
|
|
// db.setPassword("J0a1m8");
|
|
|
|
|
// bool ok = db.open();
|
|
|
|
|
QStringList dbs = QSqlDatabase::drivers();
|
|
|
|
|
qDebug() << __FUNCTION__ << dbs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
|
|
|
|
|