📄 httpclient.h
字号:
#ifndef HTTPCLIENT_H#define HTTPCLIENT_H#include <QtGui>#include <QtNetwork>class HttpClient : public QDialog{ Q_OBJECTpublic: HttpClient( QWidget *parent=0, Qt::WindowFlags f=0 ); ~HttpClient();public: QLabel* urlLabel; QLineEdit* urlLineEdit; QLabel* LabelUser; QProgressBar* progressBar; QPushButton* downloadPushButton; QPushButton* cancelPushButton; QPushButton* exitPushButton; QHttp* httpClient; QFile* file; int requestId; bool httpRequestAborted;public slots: void slotDownload(); void slotCancel(); void slotExit(); void httpRequestFinished(int, bool); void httpDataReadProgress(int, int); void httpResponseHeaderReceived(const QHttpResponseHeader &);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -