public
Description:
Homepage: http://qtjruby.org
Clone URL: git://github.com/nmerouze/qtjruby-core.git
name age message
file .gitignore Tue Dec 23 07:11:26 -0800 2008 Change rubygems loading (for jruby-complete-1.1... [nmerouze]
file LICENSE Tue Jan 06 02:34:39 -0800 2009 Update README and the thor task. [nmerouze]
file README.textile Tue Jan 06 03:39:35 -0800 2009 typo [nmerouze]
file Rakefile Tue Dec 23 08:22:47 -0800 2008 New binary. Move some dependencies in the binar... [nmerouze]
file TODO Tue Dec 23 08:22:47 -0800 2008 New binary. Move some dependencies in the binar... [nmerouze]
directory bin/ Tue Jan 06 02:16:36 -0800 2009 Fix lib path. [nmerouze]
file build.xml Tue Aug 05 06:03:16 -0700 2008 Initial import. [nmerouze]
directory build/ Tue Aug 05 06:03:16 -0700 2008 Initial import. [nmerouze]
directory examples/ Tue Dec 23 08:22:47 -0800 2008 New binary. Move some dependencies in the binar... [nmerouze]
directory lib/ Tue Dec 23 08:22:47 -0800 2008 New binary. Move some dependencies in the binar... [nmerouze]
directory org/ Wed Aug 06 09:37:19 -0700 2008 Bug fix on RubySlot due to a change in JRuby 1.... [nmerouze]
directory spec/ Tue Dec 23 07:11:26 -0800 2008 Change rubygems loading (for jruby-complete-1.1... [nmerouze]
directory tasks/ Tue Jan 06 02:34:39 -0800 2009 Update README and the thor task. [nmerouze]
README.textile

Qt::JRuby

Build crossplatform applications with Qt and Ruby.

Create a new application

NB: Java must be installed on your system.

gem install thor
thor install http://qtjruby.org/qtjruby.thor
thor qtjruby:app:create myapp
cd myapp
java -jar lib/jruby-complete-$VERSION.jar main.rb

Installation from sources

Download Qt Jambi for your platform. Put qtjambi-$VERSION.jar and qtjambi-$PLATFORM-$VERSION.jar into $JRUBY_HOME/lib folder. Then :

jruby -S gem install extlib
git clone git://github.com/nmerouze/qtjruby-core.git
cd /path/to/qtjruby-core
jruby -S rake install

Run

jruby -S qtjruby example4.rb

Add -J-XstartOnFirstThread option if you’re under Mac OS X.

Example

Qt::Application.initialize(ARGV)
hello = Qt::PushButton.new 'Hello World!'
hello.show
Qt::Application.exec

Where does it work ?

Tested under:

  • Mac OS X Tiger & Leopard
  • Ubuntu 8.10 with Java 6 & OpenJDK
  • Windows XP SP3

Links

  • Qt::JRuby : http://qtjruby.org & http://qtjruby.googlecode.com
  • Qt::JRuby sources : http://github.com/nmerouze/qtjruby-core
  • Qt Jambi Documentation : http://doc.trolltech.com

License and support

© 2008-2009 Nicolas Mérouze, under an MIT licence. http://www.opensource.org/licenses/mit-license.php

Please leave any bugs or feedback at nicolas.merouze [at] gmail [dot] com