I\'m playing around with QFtp (yes .. I know) and all works well.
Using code from their own example(s) as a guideline.
http://doc.qt.io/archives/qt-4.7/netwo
Set your progress bar to a range of 0-100, and display the percentage of bytes read instead of trying to set the absolute value.
You can make the progress bar present the progress as a percentage:
void FtpWindow::updateDataTransferProgress(qint64 readBytes,
qint64 totalBytes)
{
progressDialog->setMaximum(100);
progressDialog->setValue((qint)((readBytes * 100) / totalBytes));
}