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

📄 tcpclient.h

📁 Linux窗口程序设计,Qt4精彩实例分析,以循序渐进的方式介绍Qt4开发及其实例子,第一部分
💻 H
字号:
#ifndef TCPCLIENT_H#define TCPCLIENT_H#include <QtGui>#include <QtNetwork>class TcpClient : public QDialog{    Q_OBJECTpublic:    TcpClient( QWidget *parent=0, Qt::WindowFlags  f=0 );    ~TcpClient();public:	QListWidget *ListWidgetContent;	QLineEdit* LineEditSend;	QPushButton* PushButtonSend;    QLabel* LabelUser;    QLineEdit* LineEditUser;    QLabel* LabelServerIP;    QLineEdit* LineEditServerIP;    	    QLabel* LabelPort;    QLineEdit* LineEditPort;    QPushButton* PushButtonEnter;        QString userName;    int port;    QHostAddress *serverIP;	QTcpSocket *tcpSocket;		bool status;public slots:    void slotEnter();    void slotConnected();    void slotDisconnected();    void slotSend();    void dataReceived();};#endif 

⌨️ 快捷键说明

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