Using qtruby with qtdesigner query

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().

Cheers
Nigel

Nigel W. wrote:

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

On Thu, 9 Nov 2006 17:30:06 +0900
[email protected][email protected] wrote:

– Richard

Works for me, thankyou.

Nigel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs