From: Nigel Wilkinson Date: 2006-11-10T04:18:08+09:00 Subject: Re: Using qtruby with qtdesigner query On Thu, 9 Nov 2006 17:30:06 +0900 "richard.j.dale@gmail.com" wrote: > > 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 > Works for me, thankyou. Nigel