r/JavaProgramming • u/QtJambi • 42m ago
QtJambi 6.12.1 released – Qt 6.12 for Java, now builds Android APKs without Gradle
I maintain [QtJambi](https://www.qtjambi.io/), which makes the Qt framework (widgets, QML/Quick, multimedia, networking, SQL, 3D and much more) available to Java. Version 6.12.1 is out, with binaries for Qt 6.12.1 on JDK 11+ for Windows, macOS, Linux and Android. Everything is on Maven Central (`io.qtjambi:qtjambi:6.12.1`), and all modules are proper Java modules.
What's new:
* **Performance:** simple Java-to-native calls are 3–4× faster, calls from Qt into Java overrides (events, event filters, item models) about a third faster, startup ~8% faster.
* **Android without Gradle:** the QtJambi deployer builds signed APKs and Google Play App Bundles directly from your jars. It packs only the Qt libraries, plugins and QML modules your app needs. You need the Android SDK, but neither Gradle nor Android Studio. The docs include complete Maven and Gradle builds.
* **Native interop without JNA:** `QFunctionPointer` calls C functions (including variadic ones like `printf`), and `QFunctionPointer.of(...)` turns a Java lambda into a native callback that can be called from any thread.
* **Leaner modules:** dependencies only needed by single classes are now `requires static`, and e.g. `qtjambi-sql` no longer requires QtGui/QtWidgets.
* **Fixes:** among others a native memory leak with posted events, the lifetime of layout items, and race conditions in `QFuture`/`QtConcurrent`.
Release notes: https://github.com/OmixVisualization/qtjambi/releases/tag/v6.12.1
What's new in detail: https://github.com/OmixVisualization/qtjambi/blob/v6.12.1/www/Whats-New.md
Happy to answer questions, and feedback is very welcome.
