Stefano Crocco wrote: > Sorry, I forgot one line. The initialize method should be: > > def initialize > super # this is the new part Well, now I get no errors. However, the dialog which appears is a blank dialog, not the one which I designed with Qt designer. Any thoughts? I can always go back to the rbuic compiler if I have to. Here is my code at this point: ######################## require 'Qt' require 'qui' class MainWidget < Qt::Widget slots 'test()' def initialize super @widget = QUI::WidgetFactory.create "sampledialog.ui" set_layout = Qt::VBoxLayout.new set_layout.add_widget @widget connect @widget.child('testButton'), SIGNAL('clicked()'), self, SLOT('test()') end def test puts "test button clicked" end end a = Qt::Application.new ARGV w = MainWidget.new w.show a.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) a.exec ################################ Many thanks, David -- Posted via http://www.ruby-forum.com/.