Sha256: 1f3a592b5ac4ee168ea8992509f978ed9954e689e24a521360c131c1af1fd1d3

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

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

require 'Qt'

app = Qt::Application.new(ARGV)

window = Qt::Widget.new
window.resize(200, 120)

quit = Qt::PushButton.new('Quit', window)
quit.font = Qt::Font.new('Times', 18, Qt::Font::Bold)
quit.setGeometry(10, 40, 180, 40)
app.connect(quit, SIGNAL('clicked()'), app, SLOT('quit()'))

window.show
app.exec

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.5 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.5-x86-mingw32 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.5-x64-mingw32 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.4-x86-mingw32 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.4-x64-mingw32 examples/tutorial/t3/t3.rb
qtbindings-4.8.6.4 examples/tutorial/t3/t3.rb