Advertisement
DBDEBICH

[db error] mainwindow.h

Apr 26th, 2024
908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | Source Code | 0 0
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include <QSqlDatabase>
  6. #include <QSqlError>
  7. #include <QSqlTableModel>
  8.  
  9. QT_BEGIN_NAMESPACE
  10. namespace Ui { class MainWindow; }
  11. QT_END_NAMESPACE
  12.  
  13. class MainWindow : public QMainWindow
  14. {
  15.     Q_OBJECT
  16.  
  17. public:
  18.     MainWindow(QWidget *parent = nullptr);
  19.     ~MainWindow();
  20.  
  21. private:
  22.     Ui::MainWindow *ui;
  23.     QSqlDatabase db;
  24.     QSqlTableModel *model;
  25. };
  26. #endif // MAINWINDOW_H
  27.  
Tags: cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement