![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\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 garbage-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. Exceptions thrown by called Java methods are cleared by default, but can since Qt 6.11 also be handled by the caller.
|
Returns true if o1 holds a reference to a different object than o2.
|
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.