![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator== (const QJniObject &o1, const QJniObject &o2) |
Returns true if both objects, o1 and o2, are referencing the same Java object, or if both are NULL. | |
bool | operator!= (const QJniObject &o1, const QJniObject &o2) |
Returns true if o1 holds a reference to a different object than o2. | |
\inmodule QtCore
A convenience wrapper around the Java Native Interface (JNI).
The QJniObject class wraps a reference to a Java object, ensuring it isn't gargage-collected and providing access to most JNIEnv
method calls (member, static) and fields (setter, getter). It eliminates much boiler-plate that would normally be needed, with direct JNI access, for every operation, including exception-handling.
|
related |
Returns true if o1 holds a reference to a different object than o2.
|
related |
Returns true if both objects, o1 and o2, are referencing the same Java object, or if both are NULL.
In any other cases false will be returned.