From: Markus Fischer Date: 2010-09-27T06:37:56+09:00 Subject: NoMethodError: private method `load' called for Qt::UiLoader (was: Re: Qt::UiLoader -> uninitialized constant Qt::QUiLoader) Hi, On 26.09.2010 22:50, Stefano Crocco wrote: > require 'Qt' > require 'qtuitools' > > app = Qt::Application.new [] > ui = Qt::UiLoader.new That helps a bit! I'm only one step further however: $ irb ruby-1.9.2-p0 > require 'Qt' => true ruby-1.9.2-p0 > require 'qtuitools' => true ruby-1.9.2-p0 > ruby-1.9.2-p0 > app = Qt::Application.new [] => # ruby-1.9.2-p0 > ui = Qt::UiLoader.new => # ruby-1.9.2-p0 > ui.load NoMethodError: private method `load' called for # from (irb):6:in `method_missing' from (irb):6 from /home/mfischer/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `
' It's a bit hard currently to not get lost with these different QT ruby ports. So there's the qtruby4 gem which only contains binaries for mswin32 (and it's not mingw32, either). If you want qtruby4 anywhere else, manual source compilation is required. Then we've the gem "qtbindings" which attempts to address the shortcoming of qtruby4 not available on non-windows platforms, which is fairly new and which I'm using. Sometimes skimming through the docs I also find references to korundum (e.g. http://rubyforge.org/projects/korundum/ ) which I've no clue what it is. Is the rubyforge project related to the qtruby4 gem or is it something different? That's all really confusing. Stefano: if I may ask, in which environment are you developing? thanks, - Markus