Jambi 4.3 works really well with the Groovy programming language - in
fact the two appear to be a powerful combination.
However, it appears Jambi 4.4 breaks Groovy because the setProperty
method is marked as final for QObjects. When you subclass a QObject (or
anything else) in Groovy it becomes a groovy Object (which has a
setProperty method) but QObject have setProperty marked final so an
error occurs.
Try this minimal app it works under 4.3 - does not work under 4.4
import com.trolltech.qt.QVariant
import com.trolltech.qt.core.*
import com.trolltech.qt.gui.*
import groovy.sql.Sql
public class app extends QMainWindow {
public app(){
setWindowTitle('mytestwindow')
}
public static void main(String[] args){
QApplication.initialize(args)
def a = new app()
a.show()
QApplication.exec()
}
}
Todd Weiler
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest