summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/tutorial/t1/t1.rb
blob: 19d8a0298d9de54ca0af33c816073df7828004ba (plain)
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()