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

📄 client.h

📁 本文件是<精通QT4编程>的配套源代码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -