- Install Ruby 1.9.3 from rubyinstaller.org
- Install MinGW sufficient to install qt-win-opensource-4.6.4-mingw.exe. I installed the Qt SDK from the Web Installer.
- Add MinGW\bin to your path.
- Add Ruby193\bin to your path.
- Install Qt 4.6.4 Libraries for Windows (MinGW 4.4) (qt-win-opensource-4.6.4.exe)
- Run gem update --system
- Run gem install qtbindings
- Copy Qt\4.6.4\bin\Qt*.dll to Ruby193\bin
- Run ruby yourprogram.rb
require 'rubygems'
require 'Qt'
app = Qt::Application.new ARGV
frame = Qt::Widget.new
frame.show
app.exec
app.exec