#!/usr/bin/env ruby require 'Qt' require 'viewer' $KCODE='u' a = Qt::Application.new(ARGV) textViewer = Viewer.new textViewer.setCaption('QtRuby Example - Simple QFont Demo') a.setMainWidget(textViewer) textViewer.show a.exec()