Ruby bindings for Qt4

This is just another "Hello World" blog (not in-depth one) about well-known GUI library,so called "Qt".You probably take a look at Trolltech's [How to Learn Qt] tutorial.
[Keep in mind that like most documents about Qt, it is very C++ oriented.]
And I use Qt4 for this example.
This example shows how to create Ruby program with Ruby bindings for Qt4
The underlying code is where you are able to start

  1. require 'Qt'
  2. app = Qt::Application.new(ARGV)
  3. window = Qt::Widget.new()
  4. hello = Qt::PushButton.new('Hello!,Qt'+Qt::qVersion,window)
  5. quit = Qt::PushButton.new('Quit', window)
  6. quit.setGeometry(10, 40, 80, 40)
  7. Qt::Object.connect(quit, SIGNAL('clicked()'), app, SLOT('quit()'))
  8. window.show()
  9. app.exec()

you will see something like this:
RQt