![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
\inmodule QtCore
The QJniEnvironment class provides access to the JNI Environment (JNIEnv).
When using JNI, the \l {JNI tips: JavaVM and JNIEnv}{JNIEnv} class is a pointer to a function table and a member function for each JNI function that indirects through the table. JNIEnv
provides most of the JNI functions. Every C++ native function receives a JNIEnv
as the first argument. The JNI environment cannot be shared between threads.
Since JNIEnv
doesn't do much error checking, such as exception checking and clearing, QJniEnvironment allows you to do that easily.
For more information about JNIEnv, see \l {Java: Interface Function Table}.