Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Qt in Java?

Tags:

java

qt

Is it possible to use Qt in Java SE?

like image 730
Rendicahya Avatar asked Jan 02 '11 05:01

Rendicahya


People also ask

Can I use Qt with Java?

Qt Jambi is a Java binding of the cross-platform application framework Qt. It enables Java developers to use Qt within Java programming language. In addition, Qt Jambi generator can be used to create Java bindings for other Qt libraries and future versions of Qt.

How does Qt application work?

Qt uses a command line tool that parses these project files in order to generate "makefiles", files that are used by compilers to build an application. This tool is called qmake. But, we shouldn't bother too much about qmake, since Qt Creator will do the job for us. TEMPLATE describes the type to build.

Is Qt free?

Is Qt Creator free? There is an open-source license which is free and a commercial license. The commercial license (Qt creator and Qt SDK) starts at $459/month.


3 Answers

The current best option appears to be the Bytedeco bindings, which are JNI bindings to native C++ Qt libraries. They are not officially supported by the Qt Project, so your mileage may vary.

like image 75
Travis Gockel Avatar answered Oct 26 '22 23:10

Travis Gockel


Here are some useful tutorial for you:

  • Java desktop development with Qt Jambi
  • Working with Qt Applications - NetBeans IDE 6.9 Tutorial
like image 20
Naveed Avatar answered Oct 27 '22 00:10

Naveed


I believe it can be done using JNI (Java Native Interface) calls. There is also Jambi

like image 35
Nerdfest Avatar answered Oct 27 '22 00:10

Nerdfest