-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Equivalent toIntSupplier
withbyte
result.static interface
Equivalent toIntSupplier
withchar
result.static interface
Equivalent toConsumer
with ten arguments.static interface
Equivalent toConsumer
with three arguments.static interface
Equivalent toConsumer
with four arguments.static interface
Equivalent toConsumer
with five arguments.static interface
Equivalent toConsumer
with six arguments.static interface
Equivalent toConsumer
with seven arguments.static interface
Equivalent toConsumer
with eight arguments.static interface
Equivalent toConsumer
with nine arguments.static interface
Equivalent toDoubleSupplier
withfloat
result.static enum
Enum for requirement.static interface
Equivalent toIntSupplier
withshort
result.static interface
Equivalent toSupplier
. -
Method Summary
Modifier and TypeMethodDescriptionstatic QObject
asSelectiveEventFilter
(QObject eventFilter, QEvent.Type eventType, QEvent.Type ... eventTypes) Deprecated, for removal: This API element is subject to removal in a future version.static String
This function gets the value of the environment variable named varName.static QMetaObject.DisposedSignal
getSignalOnDispose
(QtObjectInterface object) static void
static void
initializeNativeObject
(QtObjectInterface object, QtArgument.Stream arguments) static boolean
initializePackage
(String packagePath) static boolean
initializePackage
(Class<?> cls) static boolean
initializePackage
(Package pkg) static void
Install a handler for signal emit thread checks.static boolean
isAvailableQtLibrary
(String library) static boolean
isAvailableUtilityLibrary
(String library) static boolean
isAvailableUtilityLibrary
(String library, String versionString) static File
static File
Deprecated, for removal: This API element is subject to removal in a future version.UsejambiDeploymentDir()
instead.static void
loadJambiLibrary
(String library) static void
loadLibrary
(String lib) static void
loadQtJambiLibrary
(String library) static void
loadQtLibrary
(String library) static void
loadQtLibrary
(String library, QtUtilities.LibraryRequirementMode mode, String ... platforms) static void
loadUtilityLibrary
(String library) static void
loadUtilityLibrary
(String library, QtUtilities.LibraryRequirementMode mode, String ... platforms) static void
loadUtilityLibrary
(String library, String version) static void
loadUtilityLibrary
(String library, String version, QtUtilities.LibraryRequirementMode mode, String ... platforms) static boolean
This function sets the value of the environment variable named varName.static QVersionNumber
Return the version of QtJambistatic boolean
This method allows to reinstall the QtJambi event notify callback as the last callback.static boolean
Third-party libraries must not overwrite Java's installed signal handlers.static boolean
Third-party libraries must not overwrite Java's installed signal handlers.static void
setDanglingPointerCheckEnabled
(boolean enabled) Enables or disables the dangling pointer checks at runtime.static void
setEventLogsEnabled
(boolean enabled) Enables or disables event logs checks at runtime.static void
setEventThreadAffinityCheckEnabled
(boolean enabled) Enables or disables the thread affinity checks on events at runtime.static void
setMethodLogsEnabled
(boolean enabled) Enables or disables method logs at runtime.static void
setNoExceptionForwardingFromMetaCallsEnabled
(boolean enabled) Specify `true` to avoid `QMetaObject` calls (like method invocation and property access) forwarding exceptions to the Qt caller in any case.static void
setNoExceptionForwardingFromVirtualCallsEnabled
(boolean enabled) Specify `true` to avoid virtual calls (i.e.static void
setSignalEmitThreadCheckEnabled
(boolean enabled) Enables or disables thread checks at signal emit.static void
setThreadAffinityCheckEnabled
(boolean enabled) Enables or disables the thread affinity checks at runtime.static void
threadCheck
(QObject object) Checks if the current thread is the given object's thread and throws QThreadAffinityException otherwise.static void
Checks if the current thread is UI thread and throws QThreadAffinityException otherwise.static boolean
This function deletes the variable varName from the environment.static void
useAsGadget
(Class<?> clazz) Use a class (e.g.static void
usePackageContentAsGadgets
(String _package) Define a package (e.g.
-
Method Details
-
isAvailableQtLibrary
-
isAvailableUtilityLibrary
-
isAvailableUtilityLibrary
-
loadQtLibrary
-
loadQtLibrary
public static void loadQtLibrary(String library, QtUtilities.LibraryRequirementMode mode, String ... platforms) -
loadUtilityLibrary
-
loadUtilityLibrary
public static void loadUtilityLibrary(String library, QtUtilities.LibraryRequirementMode mode, String ... platforms) -
loadUtilityLibrary
-
loadUtilityLibrary
public static void loadUtilityLibrary(String library, String version, QtUtilities.LibraryRequirementMode mode, String ... platforms) -
loadQtJambiLibrary
-
loadJambiLibrary
-
loadLibrary
-
useAsGadget
Use a class (e.g. from third party library) as gadget.- See Also:
-
usePackageContentAsGadgets
Define a package (e.g. from third party library) to let all its classes considered to be gadgets.- See Also:
-
jambiDeploymentDir
-
jambiTempDir
Deprecated, for removal: This API element is subject to removal in a future version.UsejambiDeploymentDir()
instead.- Returns:
-
initializePackage
-
initializePackage
-
initializePackage
-
getSignalOnDispose
-
initializeNativeObject
-
initializeNativeObject
-
putenv
This function sets the value of the environment variable named varName.- Parameters:
varName
-value
-
-
unsetenv
This function deletes the variable varName from the environment.- Parameters:
varName
-
-
getenv
This function gets the value of the environment variable named varName.- Parameters:
varName
-- Returns:
- value
-
reinstallEventNotifyCallback
public static boolean reinstallEventNotifyCallback()This method allows to reinstall the QtJambi event notify callback as the last callback. If other libraries register their event notify callback to Qt, it is necessary to make sure QtJambi's callback is called at last. This method can only be called from inside the main thread and before callingQCoreApplication.exec()
. -
saveUnixSignalHandlers
public static boolean saveUnixSignalHandlers()Third-party libraries must not overwrite Java's installed signal handlers. Several of these signal handlers are crucial for JVM to work. This method saves the installed signal handlers for later restoring byrestoreUnixSignalHandlers()
. -
restoreUnixSignalHandlers
public static boolean restoreUnixSignalHandlers()Third-party libraries must not overwrite Java's installed signal handlers. Several of these signal handlers are crucial for JVM to work. This method restores the signal handlers previously saved bysaveUnixSignalHandlers()
. -
qtjambiVersion
Return the version of QtJambi- Returns:
- qtjambi version
-
uiThreadCheck
Checks if the current thread is UI thread and throws QThreadAffinityException otherwise.- Throws:
QThreadAffinityException
-
threadCheck
Checks if the current thread is the given object's thread and throws QThreadAffinityException otherwise.- Throws:
QThreadAffinityException
-
asSelectiveEventFilter
@Deprecated(since="6.8.1", forRemoval=true) public static QObject asSelectiveEventFilter(QObject eventFilter, QEvent.Type eventType, QEvent.Type ... eventTypes) Deprecated, for removal: This API element is subject to removal in a future version. -
setDanglingPointerCheckEnabled
public static void setDanglingPointerCheckEnabled(boolean enabled) Enables or disables the dangling pointer checks at runtime.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setThreadAffinityCheckEnabled
public static void setThreadAffinityCheckEnabled(boolean enabled) Enables or disables the thread affinity checks at runtime.
This function is not thread-safe, i.e. calling this method parallel to usage of Qtjambi's API in other threads may lead to crash.
CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setEventThreadAffinityCheckEnabled
public static void setEventThreadAffinityCheckEnabled(boolean enabled) Enables or disables the thread affinity checks on events at runtime.
This function is not thread-safe, i.e. calling this method parallel to running event loops in other threads may lead to crash.
CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setMethodLogsEnabled
public static void setMethodLogsEnabled(boolean enabled) Enables or disables method logs at runtime.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setEventLogsEnabled
public static void setEventLogsEnabled(boolean enabled) Enables or disables event logs checks at runtime.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setSignalEmitThreadCheckEnabled
public static void setSignalEmitThreadCheckEnabled(boolean enabled) Enables or disables thread checks at signal emit.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
installSignalEmitThreadCheckHandler
public static void installSignalEmitThreadCheckHandler(BiConsumer<QObject, QMetaObject.AbstractSignal> handler) Install a handler for signal emit thread checks. The handler is executed every time an event is emitted from a thread different than the object's thread. The handler may throwQThreadAffinityException
if necessary. Call this method with to remove the installed handler.- Parameters:
handler
-
-
setNoExceptionForwardingFromMetaCallsEnabled
public static void setNoExceptionForwardingFromMetaCallsEnabled(boolean enabled) Specify `true` to avoid `QMetaObject` calls (like method invocation and property access) forwarding exceptions to the Qt caller in any case.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
setNoExceptionForwardingFromVirtualCallsEnabled
public static void setNoExceptionForwardingFromVirtualCallsEnabled(boolean enabled) Specify `true` to avoid virtual calls (i.e. Java overrides) forwarding exceptions to the Qt caller in any case.CAUTION: This function is experimental and may have unexpected behavior.
- Parameters:
enabled
-
-
QCoreApplication.asSelectiveEventFilter(io.qt.core.QObject, io.qt.core.QEvent.Type, io.qt.core.QEvent.Type...)
instead.