[Kde-bindings] Qtruby: Can't initialize obejct < Qt::Object
Caleb Tennis
caleb at aei-tech.com
Tue Jan 17 21:03:26 UTC 2006
On Tuesday 17 January 2006 15:46, Han Holl wrote:
> Hello,
> It _almost_ works, but not quite. I want an action performed at a regular
It works here (prints false...false...) just fine. What Ruby version and
QtRuby version are you using? There was a constructor issue when using an
older QtRuby and a newer Ruby (>1.8.3 I think). This patch may provide your
fix:
--- qtruby/rubylib/qtruby/Qt.cpp (revision 486006)
+++ qtruby/rubylib/qtruby/Qt.cpp (revision 486016)
@@ -1563,10 +1563,7 @@
}
VALUE result = rb_funcall2(qt_internal_module,
rb_intern("try_initialize"), argc+1, temp_stack);
-
- if (rb_respond_to(result, rb_intern("initialize")) != 0) {
rb_obj_call_init(result, argc, argv);
- }
Caleb
More information about the Kde-bindings
mailing list