From: Martin Traverso Date: 2005-02-06T03:10:36+09:00 Subject: Korundum: error when overriding a KDE::RootPixmap method Hi, I'm experimenting a bit with Korundum, but I'm having some problems. I have the following code: require 'Korundum' app = Qt::Application.new([]) widget = Qt::Widget.new pixmap = KDE::RootPixmap.new(widget) class << pixmap def updateBackground(x) puts "update background" end end pixmap.start widget.show app.setMainWidget(widget) app.exec When I run it I get this error: ArgumentError: Cannot handle 'KSharedPixmap*' as argument of virtual method KRootPixmap::updateBackground from /usr/local/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:128:in `method_missing' from /usr/local/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:128:in `qt_invoke' from /usr/local/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:128:in `method_missing' from /usr/local/lib/ruby/site_ruby/1.8/Qt/qtruby.rb:128:in `exec' If I remove the class << pixmap ... end section the program runs ok (but does not do what I want, of course). Any idea of what the error means in this context? What am I doing wrong? Thanks for your help. Martin