2023-08-08 17:47:59 +08:00
|
|
|
|
#include "widget.h"
|
|
|
|
|
#include "widget1.h" // 题目1
|
|
|
|
|
#include "widget2.h" // 题目2
|
|
|
|
|
#include "widget3.h" // 题目3
|
|
|
|
|
#include "widget4.h" // 题目4
|
|
|
|
|
#include "widget5.h" // 题目5
|
|
|
|
|
#include "widget7.h" // 题目6,题目7
|
|
|
|
|
#include "widget8.h" // 题目7
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a(argc, argv);
|
2023-08-13 11:47:17 +08:00
|
|
|
|
// Widget7 w;
|
|
|
|
|
// w.show();
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
2023-08-13 11:47:17 +08:00
|
|
|
|
Widget7 judge1;
|
|
|
|
|
Widget7 judge2;
|
|
|
|
|
Widget7 judge3;
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
2023-08-13 11:47:17 +08:00
|
|
|
|
Widget8 w8;
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
2023-08-13 11:47:17 +08:00
|
|
|
|
judge1.show();
|
|
|
|
|
judge2.show();
|
|
|
|
|
judge3.show();
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
2023-08-13 11:47:17 +08:00
|
|
|
|
// 建立信号槽连接
|
|
|
|
|
w8.connect(&judge1,&Widget7::studentSelected,&w8,&Widget8::receviceStudentSelection);
|
|
|
|
|
w8.connect(&judge2,&Widget7::studentSelected,&w8,&Widget8::receviceStudentSelection);
|
|
|
|
|
w8.connect(&judge2,&Widget7::studentSelected,&w8,&Widget8::receviceStudentSelection);
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
2023-08-13 11:47:17 +08:00
|
|
|
|
|
|
|
|
|
// w8.show();
|
2023-08-08 17:47:59 +08:00
|
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|