Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Java Ruby
Branch: master

typo

latest commit b3c1613f6d
@nmerouze authored

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

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

Something went wrong with that request. Please try again.