<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using Java&#x2F;Kotlin with CMake Qt 6. How?]]></title><description><![CDATA[<p dir="auto">Hello all!</p>
<p dir="auto">Trying to find examples or manuals or references for the case of mixing Java/Kotlin in Qt 6 project with CMake. Is there any? Is it possible to use Kotlin instead of Java with Qt 6?</p>
]]></description><link>https://forum.qt.io/topic/163115/using-java-kotlin-with-cmake-qt-6.-how</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 05:26:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163115.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Aug 2025 06:19:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using Java&#x2F;Kotlin with CMake Qt 6. How? on Mon, 01 Sep 2025 09:00:00 GMT]]></title><description><![CDATA[<p dir="auto">Solution found. <a href="https://github.com/ArboreusSystems/arboreus_examples/tree/master/qt6/CMake/Android/UsingJava/UsingJava_v1" target="_blank" rel="noopener noreferrer nofollow ugc">Example</a> published. It works for Java code. For using Kotlin haven't found any solution.</p>
]]></description><link>https://forum.qt.io/post/831071</link><guid isPermaLink="true">https://forum.qt.io/post/831071</guid><dc:creator><![CDATA[bogong]]></dc:creator><pubDate>Mon, 01 Sep 2025 09:00:00 GMT</pubDate></item><item><title><![CDATA[Reply to Using Java&#x2F;Kotlin with CMake Qt 6. How? on Mon, 01 Sep 2025 07:44:49 GMT]]></title><description><![CDATA[<p dir="auto">Official documentation <a href="https://doc.qt.io/qt-6/deployment-android.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/deployment-android.html</a></p>
<p dir="auto">Briefly - you need to define QT_ANDROID_PACKAGE_SOURCE_DIR variable correctly, something like this in CMakeLists.txt:</p>
<pre><code>if(ANDROID)
set_property(TARGET ${A_NAME_APPLICATION} PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR "/full/path/to/Platforms/android")
endif()
</code></pre>
<p dir="auto">In which you need to create 'src' folder</p>
]]></description><link>https://forum.qt.io/post/831066</link><guid isPermaLink="true">https://forum.qt.io/post/831066</guid><dc:creator><![CDATA[bogong]]></dc:creator><pubDate>Mon, 01 Sep 2025 07:44:49 GMT</pubDate></item><item><title><![CDATA[Reply to Using Java&#x2F;Kotlin with CMake Qt 6. How? on Sat, 30 Aug 2025 10:09:56 GMT]]></title><description><![CDATA[<p dir="auto">Found this manual for using Java <a href="https://somcosoftware.com/en/blog/how-to-interface-qt-with-android-java-code-2023" target="_blank" rel="noopener noreferrer nofollow ugc">https://somcosoftware.com/en/blog/how-to-interface-qt-with-android-java-code-2023</a>. Didn't tested it yet by my own.</p>
<p dir="auto">Going to write my own example based on this manual. Will publish here link on it.</p>
]]></description><link>https://forum.qt.io/post/831029</link><guid isPermaLink="true">https://forum.qt.io/post/831029</guid><dc:creator><![CDATA[bogong]]></dc:creator><pubDate>Sat, 30 Aug 2025 10:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Using Java&#x2F;Kotlin with CMake Qt 6. How? on Sat, 30 Aug 2025 09:09:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bogong">@<bdi>bogong</bdi></a><br />
I know nothing about Java or Kotlin.  However there is a <strong>QtJambi</strong> project which provides Java/Kotlin bindings for Qt, would looking at its sources or perhaps contacting its author help you here?  The author posts regularly on this forum as each <strong>QtJambi</strong> version is released for each Qt release.  Last post was: <a href="https://forum.qt.io/topic/163086/qtjambi-6.9.2-available">https://forum.qt.io/topic/163086/qtjambi-6.9.2-available</a></p>
]]></description><link>https://forum.qt.io/post/831028</link><guid isPermaLink="true">https://forum.qt.io/post/831028</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sat, 30 Aug 2025 09:09:31 GMT</pubDate></item></channel></rss>