-
Notifications
You must be signed in to change notification settings - Fork 0
/
examdialog.h
51 lines (45 loc) · 959 Bytes
/
examdialog.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
47
48
49
50
51
#ifndef EXAMDIALO_H
#define EXAMDIALO_H
#include <QDialog>
#include <QTimer>
#include <QWidget>
#include <QLabel>
#include <QRadioButton>
#include <QGridLayout>
#include <QCheckBox>
#include <QTextEdit>
#include <QApplication>
#include <QFile>
#include <QTextStream>
#include <QMessageBox>
#include <QDebug>
#include <QButtonGroup>
#include <QPushButton>
class examdialog : public QDialog
{
Q_OBJECT
public:
examdialog(QWidget* parent = 0);
void init();
private slots:
void timeoutHandle();
void showScore();
private:
void initLayout();
bool initTextEdit();
void initButtons();
bool CheckSelect();
private:
QTimer* m_timer;
int m_time;
QGridLayout* m_layout;
QRadioButton m_radiobtns[32];
QLabel m_labels[10];
QCheckBox m_checkBox[4];
QRadioButton m_A;
QRadioButton m_B;
QTextEdit* m_textEdit;
QStringList m_answer;
QButtonGroup *m_btnGroup[9];
};
#endif // EXAMDIALO_H