Just a random high-level suggestion using QTableWidget, since its easier to
talk about that...
You could use 
QTableWidget.setCellWidget()<http://qt-project.org/doc/qt-4.8/qtablewidget.html#setCellWidget>
to
set QProgressBars <http://qt-project.org/doc/qt-4.8/qprogressbar.html> into
your table, and then have your DownloadTask be able to have a progress bar
set on it. If the progress bar is set for a DownloadTask, then your
downloadProgress() slot can update it with the new values.

Something like http://pastebin.com/pFvLcCsr

I suggested passing in a QProgressBar so that your table can be the owner
of the widget, instead of the temporary DownloadTask object. All it will do
is update the progress bar that it is given.

You only need one QNetworkAccessManager instance for your entire
application, unless you are trying to do something with threading or are
hitting performance issues when reading the the responses from the requests.





On Mon, May 20, 2013 at 12:45 PM, iMath <[email protected]> wrote:

> I want to make a download tool .I use the following part code for
> downloading
>
> see the code here
> http://qt-project.org/forums/viewthread/27934/
>
> now I am facing a problem :I don’t know how to reflect download progress
> onto QtableView or QtableWidget ?especially downloading 2 or more files at
> the same time . for instance ,how to reflect download progress onto this
> QtableView ?
>
> http://postimg.org/image/7hr2xewof/
>
> here is 2 download audio link for test
>
>
> http://down.51voa.com/201305/syrian-strife-spilling-over-infecting-region.mp3
> http://down.51voa.com/201305/us-military-sex-abuse-problem.mp3
>
> anyone can give a little sample ? thanks in advance !!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to