client.h

来自「《精通QT4编程》共21章的源代码」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef CLIENT_H#define CLIENT_H#include <QDialog>#include <QTcpSocket>class QDialogButtonBox;class QLabel;class QLineEdit;class QPushButton;class QTcpSocket;class QDateTimeEdit;class Client : public QDialog{    Q_OBJECTpublic:    Client(QWidget *parent = 0);private slots:    void readTime();    void requsetTime();    void displayError(QAbstractSocket::SocketError socketError);    void enableGetFortuneButton();private:    QLabel *hostLabel;    QLabel *portLabel;    QLineEdit *hostLineEdit;    QLineEdit *portLineEdit;    QLabel *statusLabel;    QPushButton *getTimeButton;    QPushButton *quitButton;    QDialogButtonBox *buttonBox;    QTcpSocket *tcpSocket;    uint time2u;		QDateTimeEdit *dateEdit;};#endif

⌨️ 快捷键说明

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