if $0 == __FILE__ a = Qt::Application.new(ARGV) w = FrmMain.new a.mainWidget = w w.show a.exec end