summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtruby/app.rb
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/qtruby/app.rb')
-rwxr-xr-xlanguages/ruby/app_templates/qtruby/app.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/languages/ruby/app_templates/qtruby/app.rb b/languages/ruby/app_templates/qtruby/app.rb
new file mode 100755
index 00000000..da817328
--- /dev/null
+++ b/languages/ruby/app_templates/qtruby/app.rb
@@ -0,0 +1,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