Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include <QSqlDatabase>
- #include <QSqlError>
- #include <QSqlTableModel>
- QT_BEGIN_NAMESPACE
- namespace Ui { class MainWindow; }
- QT_END_NAMESPACE
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- MainWindow(QWidget *parent = nullptr);
- ~MainWindow();
- private:
- Ui::MainWindow *ui;
- QSqlDatabase db;
- QSqlTableModel *model;
- };
- #endif // MAINWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement