Sha256: 424912b5685445d9e963fa14a99e36c11fe2ea79558f84a378f34b8a2a40ff92

Contents?: true

Size: 316 Bytes

Versions: 25

Compression:

Stored size: 316 Bytes

Contents

#!/usr/bin/env ruby
$VERBOSE = true; $:.unshift File.dirname($0)

require 'Qt';

a = Qt::Application.new(ARGV)

quit = Qt::PushButton.new('Quit', nil)
quit.resize(75, 30)
quit.setFont(Qt::Font.new('Times', 18, Qt::Font::Bold))

Qt::Object.connect(quit, SIGNAL('clicked()'), a, SLOT('quit()'))

quit.show
a.exec
exit

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
rock-qtbindings-4.8.6.5 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.5 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.4 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.2 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.1 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.0 examples/tutorial/t2/t2.rb
qtbindings-4.8.6.0-x86-mingw32 examples/tutorial/t2/t2.rb
qtbindings-4.8.5.2 examples/tutorial/t2/t2.rb
qtbindings-4.8.5.2-x86-mingw32 examples/tutorial/t2/t2.rb
qtbindings-4.8.5.1 examples/tutorial/t2/t2.rb
qtbindings-4.8.5.0 examples/tutorial/t2/t2.rb
qtbindings-4.8.3.0-x86-mingw32 examples/tutorial/t2/t2.rb
qtbindings-4.8.3.0 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.4-x86-mingw32 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.4 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.3 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.2-x86-mingw32 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.2 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.1 examples/tutorial/t2/t2.rb
qtbindings-4.6.3.1-x86-mingw32 examples/tutorial/t2/t2.rb