[PyQt] converting std::vector to PyList

Giovanni Bajo rasky at develer.com
Mon Apr 2 01:07:22 BST 2007


On 30/03/2007 9.36, Patrick Stinson wrote:

> good greif! That's a good response. I didn't realize you could wrap
> templates like that.
> 
> Another way I found to get around this problem was to pass a python
> list as a SIP_PYLIST argument and populate it with the values returned
> from the C++ method after calling it with a temporary.
> 
> I shall copy your code, and I shall use your code.

Sure. Get back to me with fixes or additions! :)
-- 
Giovanni Bajo



More information about the PyQt mailing list