From: Manfred Hansen Date: 2002-02-24T04:01:26+09:00 Subject: QLineEdit Hi, i try to print out the text from QLineEdit #!/usr/local/bin/ruby require "qt2" include Qt2 class Fenster < QVBox def initialize @verarbeiter = Verarbeiter.new(self,"SLOT") @textIn = QLineEdit.new(self,"TextIn","SIGNAL") quit = QPushButton.new("Quit",self,"quit") connect(quit,QSIGNAL("clicked()"),QApplication::qApp,QSLOT("quit()")) connect (@textIn,QSIGNAL("textChanged(const QString &)"),@verarbeiter,QSLOT("@neuerTextSlot(const QString&)")) end end class Verarbeiter < QWidget def neuerTextSlot() #def neuerTextSlot(const QString ps) print ps end end a = QApplication.new( [$0]+ARGV) b = Fenster.new # Das Objekt der Klasse QWidget wird erzeugt a.setMainWidget( b ) b.show() a.exec() Here is my error message hansen@hansen-lx:~/ruby$ ./qlineedit1.rb QObject::connect: No such slot QWidget::@neuerTextSlot(const QString&) QObject::connect: (sender name: 'SIGNAL') QObject::connect: (receiver name: 'SLOT') I belive i must define a slot in the class Verarbeiter, but i have no idea how to do this. The following example have i tried to translate from c++ to ruby http://velociraptor.mni.fh-giessen.de/Programmierung/progII-html-dir/node10.html#SECTION000103600000000000000 Manfred