[Kde-bindings] Qyoto: SIGNALS/SLOTS

Arno Rehn kde-bindings at arnorehn.de
Thu Dec 22 13:48:56 UTC 2005


Am Donnerstag, 22. Dezember 2005 15:11 schrieb Richard Dale:
> On Thursday 22 December 2005 13:08, Arno Rehn wrote:
> > Yepp, seems like I took the smokeobject instead of the QObject.
> >
> > I also think it would be better to do it the SMOKE way, but I really
> > don't know how to do that. I looked in the bindings for ruby, but I don't
> > get how it was done there. The ruby-bindings don't even work for me.
>
> Have a look at qtruby.h:
>
> struct smokeruby_object {
>     bool allocated;
>     Smoke *smoke;
>     int classId;
>     void *ptr;
> };

That's quite clear now ;)
I meant I looked in the *.rb files, just to get an idea how signals/slots are 
implemented there. That didn't get me any further, I didn't find anything 
useful. 

> What goes wrong with QtRuby - it would be easier to have it working to
> compare Qyoto against?

I tried to execute t1 of the toutorials:

.../qtruby/rubylib/tutorial/t1> ruby t1.rb
/usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:477:in `create_qt_class': ByteArray 
is already defined (NameError)
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:477:in `init_class'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:745:in 
`init_all_classes'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:740:in `each'
        from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:740:in 
`init_all_classes'

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list