PDA

View Full Version : Best way to use Qt Core based lib from Java



hubbobubbo
11th December 2010, 10:01
Hi

I have a core lib that is currently made in Java and on top of this lib is a Java based UI.

Now the situation is that I want to replace the core lib with a new one made in Qt, only depending on QtCore (no UI stuff) while still using the Java based UI i.e. only replacing the core part.

So in this scenario I have a well defined interface in the Qt lib with some signals and slots that I need to connect the Java UI to. What whould be the best way to achive this Java to Qt connection. Is is JNI, SWIG, can I utilize QtJambi in some way or does anyone have any other recommendations.

wysota
11th December 2010, 18:04
This is more a Java question than a Qt question. I suggest you ask it at some Java forums.