From: German Alberto Gimenez Silva Date: 2007-07-17T21:45:38+09:00 Subject: QtRuby - Error Hello, I new in the ruby world. Sorry my english, i'm argentino and speak spanish. My question is about QtRuby. Where can tutorials, Faq, Qt's Classes?. Qt4 work with ruby or only Qt3? I' design form with Qt4-designer and: rbuic mainWindow.ui > mainWindow.rb ################################################################## ggerman@comandante:~/Qt4/example$ cat mainWindow.rb # Form implementation generated from reading ui file 'mainWindow.ui' # # Created: mar jul 17 08:28:32 2007 # by: The QtRuby User Interface Compiler (rbuic) # # WARNING! All changes made in this file will be lost! require 'Qt' class MainWindow < Qt::MainWindow def initialize(parent = nil, name = nil, fl = WType_TopLevel) super statusBar() setCentralWidget(Qt::Widget.new(self, "qt_central_widget")) @Widget = Qt::Widget.new(centralWidget(), "Widget") @MenuBar.setProperty( "geometry", Qt::Variant.new(Qt::Rect.new(0, 0, 409, 29) ) ) @StatusBar = Qt::StatusBar.new(centralWidget(), "StatusBar") languageChange() resize( Qt::Size.new(409, 580).expandedTo(minimumSizeHint()) ) clearWState( WState_Polished ) end # # Sets the strings of the subwidgets using the current # language. # def languageChange() setProperty("windowTitle", Qt::Variant.new(trUtf8("MainWindow"))) end protected :languageChange end if $0 == __FILE__ a = Qt::Application.new(ARGV) w = MainWindow.new a.mainWidget = w w.show a.exec end ################################################################## mainWindow.rb:24:in `initialize': undefined method `setProperty' for nil:NilClass (NoMethodError) from mainWindow.rb:47:in `new' from mainWindow.rb:47 Thank you for you help. -- ---- "El mundo no est叩 en peligro por las malas personas sino por las buenas personas que permiten la maldad." Albert Einstein. ---- Star Wars: Episodio V - El imperio contraataca: Ten cuidado de la ira, del miedo, de la agresividad. el Lado Oscuro ellos son. Una vez que entras en el sendero Oscuro dominar叩 tu destino para siempre.