qfedu-qt-level/Project02/mainwindow.h

45 lines
732 B
C
Raw Permalink Normal View History

2023-08-10 12:05:02 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2023-08-13 11:47:00 +08:00
#include <QMessageBox>
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include "registerwidget.h"
2023-08-10 12:05:02 +08:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
2023-08-13 11:47:00 +08:00
private:
RegisterWidget *register_widget; // 注册页面
signals:
void send_connected_port_id(const QString &);
void login_success();
2023-08-10 12:05:02 +08:00
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
2023-08-13 11:47:00 +08:00
private slots:
void on_registerBtn_clicked();
void on_loginBtn_clicked();
void on_clearBtn_clicked();
void on_exitBtn_clicked();
2023-08-10 12:05:02 +08:00
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H