1 Star 7 Fork 1

wxqt/ReservationSystem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
adminwidget.h 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
wxqt 提交于 2019-04-09 21:45 . first add
#ifndef ADMINWIDGET_H
#define ADMINWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QListWidget>
#include <QListWidgetItem>
#include <QFile>
#include <QTextStream>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QGroupBox>
class AdminWidget : public QWidget
{
Q_OBJECT
public:
explicit AdminWidget(QWidget *parent = nullptr);
signals:
void btnCancel_Clicked();
public slots:
void on_btnAddStu_Clicked();
void on_btnDelStu_Clicked();
void on_btnAddTea_Clicked();
void on_btnDelTea_Clicked();
void on_btnAddEng_Clicked();
void on_btnDelEng_Clicked();
void on_btnSave_Clicked();
void on_btnCancel_Clicked();
public:
void saveFile();
void openFile();
private:
void createWidget();
void createLayout();
QLabel *labStuName;
QLabel *labStuPasswd;
QLabel *labTeaName;
QLabel *labTeaPasswd;
QLabel *labEngName;
QLabel *labEngNum;
QLineEdit *leStuName;
QLineEdit *leStuPasswd;
QLineEdit *leTeaName;
QLineEdit *leTeaPasswd;
QLineEdit *leEngName;
QLineEdit *leEngNum;
QPushButton *btnAddStu;
QPushButton *btnDelStu;
QPushButton *btnAddTea;
QPushButton *btnDelTea;
QPushButton *btnAddEng;
QPushButton *btnDelEng;
QPushButton *btnSave;
QPushButton *btnCancel;
QListWidget *listStu;
QListWidget *listTea;
QListWidget *listEng;
QGroupBox *studentBox;
QGroupBox *teacherBox;
QGroupBox *engineRoomBox;
QGridLayout *stuInputLay;
QHBoxLayout *stuBtnLay;
QVBoxLayout *stuMainLay;
QGridLayout *teaInputLay;
QHBoxLayout *teaBtnLay;
QVBoxLayout *teaMainLay;
QGridLayout *engInputLay;
QHBoxLayout *engBtnLay;
QVBoxLayout *engMainLay;
QHBoxLayout *bottomLay;
QHBoxLayout *mainLay;
QVBoxLayout *mainLayout;
};
#endif // ADMINWIDGET_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/wxqt/ReservationSystem.git
git@gitee.com:wxqt/ReservationSystem.git
wxqt
ReservationSystem
ReservationSystem
master

搜索帮助