[Kde-bindings] Qyoto: SIGNALS/SLOTS

Richard Dale Richard_Dale at tipitina.demon.co.uk
Thu Dec 29 13:43:14 UTC 2005


On Friday 23 December 2005 22:17, Arno Rehn wrote:
> Am Donnerstag, 22. Dezember 2005 18:40 schrieb Richard Dale:
> > On Thursday 22 December 2005 16:01, Arno Rehn wrote:
> > > Am Donnerstag, 22. Dezember 2005 15:54 schrieb Richard Dale:
> > > > On Thursday 22 December 2005 13:48, Arno Rehn wrote:
> > > > > > 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'
> > > >
> > > > I think this means your Smoke library is out of step with the version
> > > > of QtRuby that you are using.
> > >
> > > Hmm - I compiled both from the same tarball (kdebindings-3.4.2, as I
> > > have KDE 3.4.2 ;) ). That shouldn't be a problem.
> >
> > What do you get if you type 'rbqtapi Qt::ByteArray' on the command line?
> > If it is in the Smoke library, it means QtRuby is older than Smoke.
>
> This is what I get:
>
> arno at arnolinux:~> rbqtapi Qt::ByteArray
> /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'
Oops, I forgot that used qtruby too.

Grep for the name 'x_QByteArray' in the sources that were generated for your 
version of the Smoke library:

baldhead duke 831% grep 'class x_QByteArray' *.cpp
x_1.cpp:class x_QByteArray : public QByteArray {

That would mean the Smoke lib is too new for the version of qtruby you have.

-- Richard



More information about the Kde-bindings mailing list