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

require 'Qt'

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

app.mainWidget = widget
widget.show
app.exec