I edited my first code,I was thinking because my code is long it's looks ugly,thanks for mention that
you see,I need to upload through HTTP,at first when I was writing my first Qt program and did not know about HTTP stuff,I read data as a QByteArray and pass it to Uploader,after processing was done I could fetch the page and I could see contents,so uploadProgress is Ok,when I added QHttpMultiPart first of all I change data from QByteArray to QFile then pass it to Uploader and append data to multipart,at the end I posted QHttpMultiPart and request
All I'm saying is Since I added QHttpMultiPart I can't fetch any pages,do you still think it's because QNetworkReply::uploadProgress() ?
If I don't use close() or deleteLater() program will crash(seagment crash) or if you mean in UploadProgress it's because PyQt sometimes will post file twice(after uploading it start uploading again) I don't know it's my code or PyQt bug,but that solved my problem





Reply With Quote

Bookmarks