[Kde-bindings] Blowin' smoke your way
Ashley Winters
jahqueel at yahoo.com
Wed Sep 10 20:01:10 UTC 2003
--- Adam Treat <manyoso at yahoo.com> wrote:
> How about Qt signal/slot mechanism... have you found a way to connect
> a Qt
> signal to a function pointer?
Umm... harder question. Signals/slots is uniquely suited to marshalling
since Qt does it internally (Qt-3.x always pushes the arguments into an
array and tosses them around to the dispatchers).
In order to provide a generic signal => function pointer converter, it
would probably require ~200 generated functions to handle every
combination of signal/slot arguments and pass them to a delegate
pointer. It's very doable -- just steal the code from PyQt.
Ashley Winters
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the Kde-bindings
mailing list