Sha256: a3aa4c8d533334be32d484c563e0570fb2b416148e2c38e810a7fea98eec9c6c

Contents?: true

Size: 466 Bytes

Versions: 22

Compression:

Stored size: 466 Bytes

Contents

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

require 'Qt'

class MyWidget < Qt::Widget

def initialize(parent = nil)
    super
    setFixedSize(200, 120)

    quit = Qt::PushButton.new('Quit', self)
    quit.setGeometry(62, 40, 75, 30)
    quit.setFont(Qt::Font.new('Times', 18, Qt::Font::Bold))

    connect(quit, SIGNAL('clicked()'), $qApp, SLOT('quit()'))
end

end

app = Qt::Application.new(ARGV)

widget = MyWidget.new
widget.show
app.exec

Version data entries

22 entries across 20 versions & 2 rubygems

Version Path
qtbindings-4.8.6.2 examples/tutorial/t4/t4.rb
qtbindings-4.8.6.1 examples/tutorial/t4/t4.rb
qtbindings-4.8.6.0 examples/tutorial/t4/t4.rb
qtbindings-4.8.6.0-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.8.5.2 examples/tutorial/t4/t4.rb
qtbindings-4.8.5.2-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.8.5.1 examples/tutorial/t4/t4.rb
qtbindings-4.8.5.0 examples/tutorial/t4/t4.rb
qtbindings-4.8.3.0-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.8.3.0 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.4-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.4 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.3 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.2-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.2 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.1 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.1-x86-mingw32 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.0 examples/tutorial/t4/t4.rb
qtbindings-4.6.3.0 ext/ruby/qtruby/examples/tutorial/t4/t4.rb
qtbindings-4.6.3.0-x86-mingw32 examples/tutorial/t4/t4.rb