View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#614
Originally Posted by vivainio View Post
You are doing the download in threads? Maybe that is causing the unresponsiveness then, threads are somewhat problematic in Python, especially when used to gain responsiveness.

(One could argue that threads are always a suboptimal solution if single threaded solutions are available)

In a Qt application, you should use QNetworkAccessManager to do the downloads in asynchronous fashion. You can track progress with that as well:

http://doc.qt.nokia.com/4.7-snapshot...wnloadProgress
I don't experience any unresponsiveness when downloading. It may take slightly longer to fetch the feed if you have a slow internet connection, but other than that, I don't see any problem.

The only unresponsiveness I get is when the list of items gets quite large. The scrolling becomes a little 'sticky', and it takes a split second longer to respond to screen taps on the list items. I don't know if there's a solution to this. I'm considering reworking the UI using QML in future, so I'll look at this in more detail at that point.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following User Says Thank You to marxian For This Useful Post: