diff options
Diffstat (limited to 'Qt/mainwindow.h')
-rw-r--r-- | Qt/mainwindow.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Qt/mainwindow.h b/Qt/mainwindow.h new file mode 100644 index 0000000..b7374a1 --- /dev/null +++ b/Qt/mainwindow.h @@ -0,0 +1,42 @@ +#pragma once + +#include <QMainWindow> + +#include "database.h" +#include "dbconnector.h" + +#include <QMessageBox> +#include <QtSql> +#include <QSqlDatabase> +#include "main.h" + + +QT_BEGIN_NAMESPACE +namespace Ui { class MainWindow; } +QT_END_NAMESPACE + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + MainWindow(QWidget *parent = nullptr); + ~MainWindow(); + +private slots: + void on_actionAbout_triggered(); + + void on_pushButton_clicked(); + + void on_actionConnection_triggered(); + +private: + Ui::MainWindow *ui; + + dbConnector *_dbConenctor; +// QSqlDatabase db; + +// QSqlQueryModel *pQueryModel; + + Database database; +}; |