[Kde-bindings] Qt::KeyEvent constructor bug?
Stefano Crocco
stefano.crocco at alice.it
Tue Aug 19 17:24:17 UTC 2008
Calling Qt::KeyEvent.new with all the arguments gives an ArgumentError if the
last parameter is not nil. For example
require 'Qt4'
Qt::KeyEvent.new Qt::Event::KeyPress, Qt::Key_PageDown, Qt::NoModifier, '', true, 1
gives
/usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2450:in `initialize': unresolved constructor call Qt::KeyEvent (ArgumentError)
from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2450:in `call'
from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2450:in `try_initialize'
from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2449:in `catch'
from /usr/lib/ruby/site_ruby/1.8/Qt/qtruby4.rb:2449:in `try_initialize'
from /home/stefano/documenti/scripts/prova.rb:2:in `new'
from /home/stefano/documenti/scripts/prova.rb:2
The error doesn't happen if the last parameter is nil.
Stefano
More information about the Kde-bindings
mailing list