Creating a Java binding to a Qt-based library

I am writing a library based on Qt (QtCore) C ++ and want to have access to it from Java and Python. Python is not a problem due to PySide and SIP. But I can not find any information on how to do the same with Java. The fact that Java bindings exist for Qt makes me hope that there is a way to create bindings for a Qt-based user library.

Has anyone done this? Or do you have information or pointers on how to do this?

+3
source share
2 answers

Qt Jambi has included a generator that you could use on your own Qt classes.

, Nokia Jambi v4.5.

. http://doc.qt.nokia.com/qtjambi-4.5.0_01/com/trolltech/qt/qtjambi-generator.html.

, http://www.sra.co.jp/qt/relation/qtjambi-whitepaper-tp3.pdf 4.

+1

http://www.swig.org/ swig. , , Java Python, C (++). , ++ int add(int x, int y), / SWIG Java, , , C-, .

0

Source: https://habr.com/ru/post/1751829/


All Articles