?? dialog.h
字號(hào):
#ifndef DIALOG_H#define DIALOG_H#include <QDialog>#include <QTcpSocket>class QFile;class QDialogButtonBox;class QLabel;class QProgressBar;class QPushButton;class QTcpSocket;class Dialog : public QDialog{ Q_OBJECTpublic: Dialog(QWidget *parent = 0);public slots: void start(); void startTransfer(); void updateClientProgress(qint64 numBytes); void displayError(QAbstractSocket::SocketError socketError); void openFile();private: QProgressBar *clientProgressBar; QLabel *clientStatusLabel; QPushButton *startButton; QPushButton *quitButton; QPushButton *openButton; QDialogButtonBox *buttonBox; QTcpSocket tcpClient; qint64 TotalBytes; qint64 bytesWritten; qint64 bytesToWrite; qint64 loadSize; QString fileName; QFile *localFile; QByteArray outBlock;};#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -