#ifndef CHEAT_H #define CHEAT_H #include // 包含 TCP 库 #include #include #include #include namespace Ui { class cheat; } class cheat : public QWidget { Q_OBJECT public: explicit cheat(QTcpSocket *s, QWidget *parent = nullptr); ~cheat(); private slots: void on_Clear_Button_clicked(); void on_Send_Button_clicked(); private: Ui::cheat *ui; // 实例化 QTcpSocket 对象 QTcpSocket *socket; }; #endif // CHEAT_H