[Qt-jambi-interest] Emitter example required
Derek Fountain
derekfountain at yahoo.co.uk
Wed May 14 19:41:02 CEST 2008
> The name of the signal is the name of the object. In this case, you have
> named your signal 'e'. If you want to make a signal called colorChanged,
> do the following:
>
> Signal1<String> colorChanged = new Signal1<String>();
Wow, I was really close! I'm impressed with myself, given this is the
first time I've ever tried to use Java generics. :)
> Signals must be declared as members of your class. I'm guessing this is
> the reason for your run time exception (was the message of the run time
> exception "Signals must be declared as members of QSignalEmitter
> subclasses", if so then this is your problem.)
Your guess was correct - a quick tweak and it's working correctly. Thanks.
More information about the Qt-jambi-interest
mailing list