From: Pierre Brengard Date: 2002-05-18T01:19:28+09:00 Subject: Re: Ruby/Qt Christian Szegedy wrote: > Christian Boos wrote: > >> (mainly it is difficult to override constructors and >> virtual methods). > > > > Could you give an example on overriding a virtual method in > Qt2 binding of Ruby. Or some documentation in this regard? > > Thanks, Christian > > for exemple, you cannot overload (or implement - whatever is the word) the virtual method virtual void drawSplitter ( QPainter *, QCOORD x, QCOORD y, QCOORD w, QCOORD h ) In fact, if you do it (say write a method like def drawSplitter painter, x, y, w, h ... end , it does nothing because the C++ implementation calls the C++ method and *not* the ruby method. Has someone a clue to overload virtual methods for ruby-Qt3 ? Regards, Pierre Brengard