[Kde-bindings] Qyoto: SIGNALS/SLOTS

Arno Rehn kde-bindings at arnorehn.de
Thu Dec 8 19:32:21 UTC 2005

Am Mittwoch, 7. Dezember 2005 17:43 schrieb Richard Dale:
> On Wednesday 07 December 2005 15:36, Arno Rehn wrote:
> > Hi,
> >
> > I experimented a bit and created a more complex Hello-World sample app.
> > I wanted to connect the "clicked()" signal of a button to the "quit()"
> > slot of QApplication. Got a SIGSEGV.
> > I looked into the Qt.cpp of qtruby and it seems as signals and slots are
> > a bit difficult.
> QtRuby dynamically constructs QMetaObjects, rather than it being done at
> compile time by the moc pre-processor. But the actual runtime is identical.
> We need a way of denoting which methods are slots in C#, and I assume we
> can use 'attributes' (or are they called 'annotations' I've forgotten).
> Maybe you could have a look at how we might mark slots, and then the
> runtime side should be very similar to QtRuby. We don't have to invent
> anything much new apart from that.

OK, I found out how to mark Signals/Slots with Attributes. I attached an 

Arno Rehn
arno at arnorehn.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.cs
Type: text/x-java
Size: 887 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20051208/e86ec0c8/attachment.java>

More information about the Kde-bindings mailing list