[PyQt] QMap, QHash?

Phil Thompson phil at riverbankcomputing.com
Sat Nov 17 09:33:57 GMT 2012


On Fri, 16 Nov 2012 15:18:29 -0800, David Cortesi <davecortesi at gmail.com>
wrote:
> On Fri, Nov 16, 2012 at 2:20 PM, Phil Thompson
> <phil at riverbankcomputing.com> wrote:
>> On Fri, 16 Nov 2012 10:34:12 -0800, David Cortesi
<davecortesi at gmail.com>
>> 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 import QAbstractListModel
>>>>> help(QAbstractListModel.itemData)
>>
> 
> Hm. Well, there's me looking at the Qt Assistant class ref instead of
> the Riverside class ref.

The best source of simple help (ie. argument and result types) is help()
because it is generated automatically and should always be correct.

Phil


More information about the PyQt mailing list