[Qt-jambi-interest] Emitter example required

Derek Fountain derekfountain at yahoo.co.uk
Wed May 14 15:44:13 CEST 2008


Can someone either point me at, or show me the guts of, an example of using an emitter?

Specifically I'd like to emit a signal called "colorChanged" which carries a String containing the name of the colour something has changed to. My best effort to date is:

    QSignalEmitter.Signal1<String> e = new QSignalEmitter.Signal1<String>();
    e.emit("blue");

which at least compiled. :) But a) it doesn't carry the name of a signal (where do I specify the "colorChanged" name?) and b) it caused a runtime exception.

How do I do it?



      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html



More information about the Qt-jambi-interest mailing list