Qt's Tcpclient
2016-08-23
0 0 0
no vote
Other
Earn points
#ifndef TCPCILENT_H
#define TCPCILENT_H
#include
#include
class Dialog: public QDialog
{
Q_OBJECT
public:
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 // TCPCILENT_H
#define TCPCILENT_H
#include
#include
class Dialog: public QDialog
{
Q_OBJECT
public:
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 // TCPCILENT_H
qt
TcpClient
Related Source Codes
获取窗口及子控件句柄
0
0
no vote
MVC Warehouse Management WMS System Source Code
0
0
no vote
VC port operation module
0
0
no vote
SNMP C++library
0
0
no vote
VC pure code realizes LED digital clock
0
0
no vote
No comment