summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/tutorials/p1/p1.rb
blob: 87e5e1b98636004a013b022d0726b3bc56961738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'Qt'

    a = Qt::Application.new( ARGV )

    hello = Qt::PushButton.new( "Hello world!", nil )
    hello.resize( 100, 30 )
 
    Qt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') )
 
    a.setMainWidget( hello )
    hello.show()
 
    a.exec()