[Kde-bindings] Qyoto Custom Signal Arguments
Richard Dale
rdale at foton.es
Mon Sep 4 11:49:14 UTC 2006
On Sunday 03 September 2006 18:17, Arno Rehn wrote:
> > Ruby program attached.
> > Why isn't emitSignal() called?
>
> Oh sorry, I forgot about
> "but you can't emit existing c++ signals in QtRuby like you can in Qyoto,
> only ruby signals."
> Sorry again. Then I'll have to declare my own signals.
Yes, just redeclare the signal in the MySlider class like this, and it should
work ok:
class MySlider < Qt::Slider
signals 'valueChanged(int)'
def initialize(parent)
super(parent)
end
def Emit()
emit(valueChanged(5))
end
end
-- Richard
More information about the Kde-bindings
mailing list