?? tcpclient.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 + -