On Thursday 03 February 2011 12:54:50 Sylvain Meunier wrote:
> Hello,
> 
> What is the usual way for binding method templates ?

There's no simple way, sometimes it's possible some times not because we can't 
instantiate those template methods at runtime. So you need to analyze the 
semantics of the method and write some kind of code injection to do the hard 
task of connect the world of compile time stuff (C++ templates) to the world of 
run time stuff (Python).

As an example you could see our implementation of qmlRegisterType<T>[1] or  
QObject::findChildren to have an idea.

[1] http://qt.gitorious.org/pyside/pyside/trees/master/PySide/QtDeclarative
 
-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to