[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main


  QtRuby and Korundum Bring eXtreme RAD to KDE
Developer Posted by Richard Dale on Sunday 19/Sep/2004, @18:43
from the matz-is-god dept.
For those of you not in the know, Ruby is a relatively new general purpose scripting language that is surprisingly expressive, allowing developers to prototype and develop powerful applications in a short time. Now with QtRuby and Korundrum, that power and expressivity has increased: You can sketch out pretty interfaces with Qt Designer and automatically create Ruby code with the rbuic tool. Or do amazing things with DCOP without needing preprocessors, makefiles etc -- just type in your Ruby script and be in control of your desktop. In fact, you can find a fairly complete description of all the features supported by QtRuby and Korundrum over at the Ruby bindings section of the KDE Developer's Corner.

I've also translated a couple of tutorials into Ruby. There is a Ruby version of Qt Tutorial #1, and the corresponding Ruby code is in qtruby/rubylib/tutorial/. That's the one where you build a game to fire a cannon at a target; it explains the basics of Qt widgets such as using layout managers, and how signals and slots work.

For KDE, there is a Ruby translation of a KDE 3.0 tutorial originally written for C++ by Antonio Larrosa Jiménez. The sources are in korundum/rubylib/tutorials/. In nine steps it takes you from simple Hello Worlds in Qt and KDE, right up to building a customized browser using the KDE::HTMLPart component which communicates with a bookmarks app over DCOP.

The QtRuby and Korundum bindings have been backported to Qt 3.1.x and KDE 3.1.x, and so now it should be possible to build them on any KDE installation from the last year or two, right up to the current KDE 3.3. You can obtain recent CVS snapshots on the Rubyforge QtRuby/Korundum site.

<  |  >

 

  Related Links
 ·   Articles on Developer
 ·   Also by Richard Dale
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Over 40 comments listed. Printing out index only.
What bindings in general need is:
by anon on Sunday 19/Sep/2004, @18:59
one killer application using them. Right now, I have a feeling that people use the bindings more for prototyping and quick apps for themselves and convert to C++ later on.. that's one thing that makes bindings great, but hurts them in the long run.

Just my 2 cents on this, anyone agree?
[ Reply To This | View ]
Oh what joy
by KDE User on Sunday 19/Sep/2004, @20:39
This is great! I recently discovered Ruby and I've been hoping to use it with KDE.. and now I can!

Ruby is an amazingly wonderful language and I urge everyone to take the time to learn it, even if you won't use it. It's really quite a fun language to use.
[ Reply To This | View ]
Benefits over KJSEmbed?
by Jason keirstead on Monday 20/Sep/2004, @05:19
Not to be trolling, but, what exactly are the benefits of this over KJSEmbed (other than say, being able to use Ruby because you like it more)? To me, I see this has the distinct disadvantage of depending on a non-kde scripting engine - while KJSEmbed uses a totally, 100% KDE/QT engine (KJS) that every KDE install already has.
[ Reply To This | View ]
PhpQT / PhpKDE
by Jaxn on Monday 20/Sep/2004, @13:51
I would really love to see PHP bindings. Especially now that PHP5 is stable.

I know the first response will be that I should write one. I would love too, I just can't find any docs for Smoke (I think that is the preferred kde bindings method).

-Jackson
[ Reply To This | View ]
Gentoo?
by Jonas B. on Tuesday 21/Sep/2004, @02:26
I'm trying out the Gentoo distribution. Which package should I emerge to get QtRuby?
[ Reply To This | View ]
C++ and Qt
by M on Tuesday 21/Sep/2004, @05:46
Besides various bindings it would be nice to have some advanced C++ features in Qt as well. I am especially missing:

1) exceptions
2) multiple inheritance from two QObjects
3) better use of namespaces

A library without exceptions in 2004 is a bit poor really.
[ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "If you have an itch not being scratched, you can scratch it, or pay someone to scratch it for you." -- Eric Laffoon
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]