[PySide] (shiboken) how to wrap template class?
jpe at wingware.com
Thu Jul 11 20:23:05 CEST 2013
On 7/11/13 1:27 PM, Matthew Woehlke wrote:
> I'm trying to write shiboken bindings for some code that makes heavy use
> of std[::tr1]::shared_ptr, but cannot figure out how to wrap the same.
> I could've sworn I'd seen shiboken wrapping template stuff somewhere,
> but can't seem to find any examples (besides the built-in container
> types, anyway). Can someone recommend a course of action?
I don't know if Qt makes use of templates like this; if it does, I would
look at the PySide code for examples.
I recently had some success using <inject-code> to inject manually
written code rather than trying to get arguments to convert, but then
I'm more familiar with the Python C api than most and didn't have very
many methods to wrap.
More information about the PySide