1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env ruby $VERBOSE = true; $:.unshift File.dirname($0) require 'Qt' a = Qt::Application.new(ARGV) hello = Qt::PushButton.new('Hello World!', nil) hello.resize(100, 30) a.setMainWidget(hello) hello.show() a.exec()