On Sat, 4 Jul 2009 19:18:29 +0200, Detlev Offenbach
<[email protected]> wrote:
> Hi,
> 
> I would like to store a QModelIndex instance in a QVariant in one place
of
> my 
> code and retrieve this back out of the variant somewhere else.
> 
> How do I do that. PyQt4.QtCore.QVariant seems to be missing the
setValue() 
> method.

...because it is template based. Just pass it to QVariant() and retrieve it
with toPyObject().

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to