From: Stefano Crocco Date: 2010-09-27T05:50:08+09:00 Subject: Re: Qt::UiLoader -> uninitialized constant Qt::QUiLoader On Sunday 26 September 2010, Markus Fischer wrote: > |Hi, > | > |using 1.9.2p0 and qtbindings (4.6.3.0) I always get > | > |$ ruby -rQt -e 'Qt::UiLoader.new' > |-e:1:in `const_missing': uninitialized constant Qt::UiLoader (NameError) > | from -e:1:in `
' > | > |According to > |http://github.com/ryanmelt/qtbindings/blob/master/ext/ruby/qtruby/README#L > |224 it should be there. > | > |I'm wondering what I'm missing ... ? > | > |I can use the generate rbuic4 but I'm more looking into loading it at > |runtime. > | > |thanks, > |- Markus I don't know whether that page is up to date with the latest changes in qtruby. I don't know which version of qtruby you're using (the 4.6.3 you mention is the Qt version, not the qtruby version). At any rate, using the version I have installed, which is the one included with KDE 4.5.1, I have to require qtuitools besides Qt: require 'Qt' require 'qtuitools' app = Qt::Application.new [] ui = Qt::UiLoader.new I hope this helps Stefano