From: "richard.j.dale@..." Date: 2006-11-09T17:30:06+09:00 Subject: Re: Using qtruby with qtdesigner query Nigel Wilkinson wrote: > Hi folks > > I've recently started experimenting with qtruby and have decided to > used qtdesigner to do the GUI. > > Looking in the example "colortool" the file mainform.rb which is > generated by rbuic calls a method init() which is then redefined > in mainform.ui.rb. > > My problem is that my equivalent of mainform.rb does not call init(). > > What do I have to do in qtdesigner to get it to call init(). You need to use the Edit -> Slots menu in Qt3 Designer to bring up a dialog called 'Edit Functions' (confusing!). Then add a virtual function called init() which takes no arguments, returns void and isn't a slot. When you use rbuic to generate the ruby code, it will add a call to init() at the end of the initialize method for the form's class. -- Richard