I would like to know how to manage (with QtRuby) the optional parameter
from the constructor of a lot of classes (in Qt C++).
I join a quick example.
Here is the code:
class Tree < Qt::TreeWidget
def initialize parent # = 0 ??? (or something like that)
# because I want this parameter to be
# optional like in the parent class
class Window < Qt::MainWindow
# I have to use self whereas I want NO parameter setCentralWidget Tree.new self
if FILE == $0
a = Qt::Application.new ARGV
g = Window.new