Re: [PyQt] QMap, QHash?

2012-11-16 Thread David Cortesi
On Fri, Nov 16, 2012 at 2:20 PM, Phil Thompson wrote: > On Fri, 16 Nov 2012 10:34:12 -0800, David Cortesi > wrote: >> Working on implementing a List model using QAbstractListModel and >> would like to implement (set)itemData which returns a QMap. > Have you tried... > from PyQt4.QtCore impo

[PyQt] Problem with threaded ftp: Cannot queue arguments of type 'QUrlInfo'

2012-11-16 Thread Brian Knudson
Certainly, I'm doing something wrong, but I must be missing it. I've made a little demo script that downloads a file from ftp & updates a progress bar while doing so. The downloading & updating the progress bar works fine, however, I'm trying to do the next step which is to take a url that look

Re: [PyQt] QMap, QHash?

2012-11-16 Thread Phil Thompson
On Fri, 16 Nov 2012 10:34:12 -0800, David Cortesi wrote: > Working on implementing a List model using QAbstractListModel and > would like to implement (set)itemData which returns a QMap. > > QMap seems to be Qt's version of a dict, a list of key:value pairs. > (QHash is apparently similar.) The p

[PyQt] QMap, QHash?

2012-11-16 Thread David Cortesi
Working on implementing a List model using QAbstractListModel and would like to implement (set)itemData which returns a QMap. QMap seems to be Qt's version of a dict, a list of key:value pairs. (QHash is apparently similar.) The point of itemData/setItemData is to return or set the data for every