On Fri, 7 Dec 2012 16:06:28 -0800, David Cortesi
wrote:
> OK, I implement QListView.itemData() returning a python dict,
> which then arrives at QListView.setItemData() as a QVariant
> of length 1. The problem is, how to cast that qv back to a dict?
> I have read
>
> http://www.riverbankcomputing.
qv.toPyObject() gives the same as qv.toMap, a python dict in which the
keys have been changed to QStrings (these keys were all python strings
originally, don't know what it would do with numeric keys) and the
values to QVariants.
This is ok in the sense that no data is lost, but adds some code in