[Kde-bindings] Qyoto: SIGNALS/SLOTS
kde-bindings at arnorehn.de
Wed Dec 14 18:43:57 UTC 2005
Am Dienstag, 13. Dezember 2005 18:10 schrieb Adam Treat:
> Hi all, I've been watching your discussion of SIGNALS/SLOTS for Qyoto and I
> wanted to offer up how this was solved in Qt# as I think it might reduce
> the work for you guys...
> Attached are three files that should be pretty much self contained drop in
> replacements for a signal/slot binding for Qyoto. The first one
> 'SigSlots.cs' will give you signal/slot functionality for C# <--> C#
> signals/slots and the second one 'NativeSigSlots.cs' will give you C++ <-->
> C# signals/slots as well as C# <--> C++ signals/slots.
> Finally, the file 'emit.cs' will show you how it all works.
> Here is what it looks like:
I found the following in you code:
IntPtr s = (this.Instance as QtSharp).RawObject;
does 'RawObject' point to the underlying C++ instance?
If it does, a second question: How do I get the pointer to the C++-instance?
It tried it with 'GCHandle.Alloc' but that doesn't seem to work.
arno at arnorehn.de
More information about the Kde-bindings