chatroom.h

来自「一个用QT写的局域网聊天程序.不需要服务器」· C头文件 代码 · 共 50 行

H
50
字号
#ifndef CHATROOM_H#define CHATROOM_H#include <QtGui>#include "client.h"class ChatRoom : public QDialog{    Q_OBJECTpublic:private:    QVBoxLayout *vboxLayout;    QHBoxLayout *hboxLayout;    QHBoxLayout *hboxLayout1;    QTextEdit 	textEdit;    QListWidget listWidget;    QLabel 		label;    QLineEdit 	lineEdit;    Client client;    QString myNickName;    QTextTableFormat tableFormat;public:    ChatRoom(QWidget *parent = 0);    ~ChatRoom();private:	void Layout();	void createActions();public slots:    void appendMessage(const QString &from, const QString &message);private slots:	void returnPressed();	void newParticipant(const QString &nick);	void participantLeft(const QString &nick);	void showInformation();};#endif // CHATROOM_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?