T
t3chn0n3rd
#!/usr/bin/env ruby
require 'Qt'
class MyWidget < Qt::Widget
slots 'but_clie()'
def initialize(parent=nil)
super(parent)
@table = Qt::Table.new(10,10,self)
connect(@table,SIGNAL('clicked()'),self,SLOT('but_clie
()'))
end
def but_clie
puts "clicked"
end
end
require 'Qt'
class MyWidget < Qt::Widget
slots 'but_clie()'
def initialize(parent=nil)
super(parent)
@table = Qt::Table.new(10,10,self)
connect(@table,SIGNAL('clicked()'),self,SLOT('but_clie
()'))
end
def but_clie
puts "clicked"
end
end