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