Qt Jambi is a new product that will let Java programmer harvest the power of Qt. Now it turns out that it's not only Java addicts that should get excited. There are a bunch of languages that compiles to byte code, and are using the existing JVM as it's runtime. I set out to investigate the possibilities, and it is looking good :-)
Let's start by looking at Kawa . Kawa is an implementation of Scheme, which is in the Lisp family of programming languages. So let's try to open a file dialog, and connect it's signal currentChanged to println. To run the code below, just make sure kawa is in your path, and that the the qtjambi.jar is in the classpath.
That was fun :-), so what did we do. We created a widget (Fun) with a QLineEdit and a custom FunctionPlotter widget. Then we connected the QLineEdit's input to the FunctionPlotters eval function. The FunctionPlotters eval function would try to evaluate the expression, and assign the resulting function to the function variable. Each time the widget needs to paint the graph, it will call this function for each x value that fit's on the plot, and plot a dot for the result.
This approach is of course fairly unsafe, since you could write a function that formated your harddrive, but it also shows some of the power of a scriptable language.
Good luck with exploring the possibilities, and post a comment when you have tried some other languages.