From: Andrey Demidov Date: 2009-06-17T15:13:59+09:00 Subject: [qt] - connect signal with my method Hi all, I'm trying to connect signal with the method of my class. If the method doesn't have any arguments I have not the problems. But I couldn't find any solution to pass argument to my method. This is my code: class RDPSelect < Qt::ListWidget slots 'action()' def initialize(parent = nil) super(parent) end def action(item) puts "hello" end end # gui section app = Qt::Application.new(ARGV) window = Qt::Widget.new() window.resize(200, 120) list = RDPSelect.new(window) configs.each {|config| list.addItem(config['name'])} Qt::Object.connect(list, SIGNAL('itemActivated(QListWidgetItem*)'), list, SLOT('action(item)')) window.show() app.exec() When I launch it I get the message: Object::connect: No such slot RDPSelect::action(item) Thanks in advance, Andrey -- Posted via http://www.ruby-forum.com/.