⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatroom.h

📁 一个用QT写的局域网聊天程序.不需要服务器
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -