QtRuby

From Wikipedia, the free encyclopedia
Jump to: navigation, search
QtRuby
Stable release 2.2.0 / December 16, 2011; 17 months ago (2011-12-16)
Written in Ruby
Operating system Cross-platform
License LGPL
Website http://techbase.kde.org/Development/Languages/Ruby

QtRuby is a binding of the application framework Qt for the programming language Ruby. Korundum is an additional set of bindings for the desktop environment KDE.

Since the underlying technologies Ruby, Qt, and KDE are cross-platform, so is QtRuby. It supports Linux and other flavours of Unix, as well as Mac OS X and Microsoft Windows.

Contents

QtRuby hello world[edit]

require 'Qt4'
 
app = Qt::Application.new(ARGV)
 
hello = Qt::PushButton.new('Hello World!')
hello.resize(100, 30)
hello.show
 
app.exec

The Korundum documentation[1] proposes a more "rubyish" version of this program.

Notable applications that use QtRuby[edit]

  • Kubeplayer, a video player dedicated to play online videos.[2]
  • Kaya, a Qt/KDE-based application to play chess, shogi and variants thereof.[3]

Status and Maintenance[edit]

Currently, QtRuby is maintained (if at all) as part of Korundum. Binary packages (for Debian, Fedora, ...) are stuck at Ruby1.8. The source release qt4-qtruby-2.2.0 of December 2011 supports Ruby1.9 as well as 1.8.

Certainly, it is now progressive, and it will be updated.

References[edit]

External links[edit]