Re: [PyQt] PyObject to QVariant and back

2012-03-09 Thread Phil Thompson
On Thu, 08 Mar 2012 08:35:30 +0100, Benjamin Kloster wrote: > Hi everyone, > since my use case is a rather long-winded description of my predicament, > first my question: > > Are there API functions of sip that I can use to convert a PyObject* to > a QVariant with the appropriate type and the o

[PyQt] PyObject to QVariant and back

2012-03-07 Thread Benjamin Kloster
Hi everyone, since my use case is a rather long-winded description of my predicament, first my question: Are there API functions of sip that I can use to convert a PyObject* to a QVariant with the appropriate type and the other way around? Now why I could really use such functions: For our a