[PyQt] dense about qvariant and dict
David Boddie
david at boddie.org.uk
Sat Dec 8 00:34:19 GMT 2012
On Sat Dec 8 00:06:28 GMT 2012, David Cortesi wrote:
> dict(qv) doesn't do it. qv.toHash produces an empty dict.
> qv.toMap produces a QMap with the original keys as QStrings and
> the original data as QVariants. OK, but I'd rather have the python
> dict -- is there a way to get it, or do I have to work with the QMap form?
What does qv.toPyObject() give you?
David
More information about the PyQt
mailing list