[RESOLVED]How to control the step time while recive data
I have this code:
// Note: QNetworkReply reply;
// Note: QNetworkAccessManager qnam;
@ reply = qnam.get(QNetworkRequest(url));
this, SLOT(updateDataReadProgress(qint64,qint64))); // I have to recive the data per 1s.@
Thans very much.
You cannot control when data is received: that depends on the sender and the network.
If you want to update a progress meter every second then simply store the number of bytes received as they are received. Use a QTimer separate to trigger updating the meter every second using the last stored byte count.
I got the solution through QTimer.
Thank you Chris!