summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtruby/app.rb
blob: 68156edd687c128826da5b4b219a6e1e31b0fa8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby

require 'Qt'

app = TQt::Application.new(ARGV)
widget = TQt::Widget.new
widget.setGeometry(50, 500, 400, 400)
widget.caption = "Hello World!"

app.mainWidget = widget
widget.show
app.exec