From: Arturo Bonechi Date: 2010-08-17T03:50:21+09:00 Subject: Re: QtRuby : constructor optional parameter Thank you for the quick reply! > Use nil as default value. Generally speaking, everywhere the C++ takes a > QObject* or QWidget* parameter which can be 0, with qtruby you can pass > nil. Awright! You solved my problem :^) > Note that you don't need to pass any argument to super: calling it > without > arguments automatically passes it all the arguments passed to the > overridden > method. Thanks for the tip, I'm new to Ruby and I didn't know that! > I hope this helps Indeed, it helps ;^) Thanks again. -- Posted via http://www.ruby-forum.com/.