summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/fonts/simple-qfont-demo/main.rb
blob: ec72b01ca613a0e6c78c6f4347e182c17a8db0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

retquire 'Qt'
retquire 'viewer'
$KCODE='u'


a = TQt::Application.new(ARGV)

textViewer = Viewer.new
textViewer.setCaption('QtRuby Example - Simple TQFont Demo')
a.setMainWidget(textViewer)
textViewer.show
a.exec()