From be0b63c2093350bf4fb79a06eb25354d62f02ba1 Mon Sep 17 00:00:00 2001 From: metanoia1989 Date: Sun, 3 Jan 2021 22:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MultiplethreadDownload/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiplethreadDownload/widget.cpp b/MultiplethreadDownload/widget.cpp index 9ae4d64..7b2b2f8 100644 --- a/MultiplethreadDownload/widget.cpp +++ b/MultiplethreadDownload/widget.cpp @@ -167,8 +167,8 @@ void Widget::multiDownload(const QString &url, qint64 fileSize, const QString &f { QMutexLocker mLock(&lock); // qDebug() << "调整文件的数据指针:" << writePos; - file.seek(writePos); - file.write(data); +// file.seek(writePos); +// file.write(data); bytesReceived += data.size(); qDebug() << QString("%1, %2, %3") .arg(writePos).arg(bytesReceived).arg(data.size());