-
Notifications
You must be signed in to change notification settings - Fork 0
/
addStudentInfo.h
47 lines (39 loc) · 960 Bytes
/
addStudentInfo.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef ADDSTUDENTINFO_H
#define ADDSTUDENTINFO_H
#include <QWidget>
#include <QFormLayout>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QDateEdit>
#include <QFile>
#include "sql.h"
class addStudentInfo : public QWidget
{
Q_OBJECT
public:
explicit addStudentInfo(SMSsqlDatabase* DB,QWidget *parent = 0);
~addStudentInfo();
private:
SMSsqlDatabase* myDB;
QFormLayout* formLayout;
QStringList labelsText;
QLabel Labels[6];
QRegExp regExp[2];
QLineEdit* LineEditID;
QLineEdit* LineEditName;
QComboBox* comboBoxSex;
QDateEdit* dateEditBirth;
QComboBox* comboBoxMajor;
QComboBox* comboBoxClass;
QPushButton* btnRegister;
QPushButton* btnReset;
QPushButton* btnImport;
QHBoxLayout* btnLayout;
private slots:
void on_btnRegister_clicked();
void on_btnReset_clicked();
void on_btnImport_clicked();
};
#endif // ADDSTUDENTINFO_H