Module qtjambi
Package io.qt

Class QtObject

All Implemented Interfaces:
QtObjectInterface
Direct Known Subclasses:
AbstractAssociativeContainer, AbstractMultiAssociativeContainer, AbstractSequentialConstIterator, AbstractSequentialContainer, CustomWidgetInterface, DomAction, DomActionGroup, DomActionRef, DomBrush, DomButtonGroup, DomButtonGroups, DomChar, DomColor, DomColorGroup, DomColorRole, DomColumn, DomConnection, DomConnectionHint, DomConnectionHints, DomConnections, DomCustomWidget, DomCustomWidgets, DomDate, DomDateTime, DomDesignerData, DomFont, DomGradient, DomGradientStop, DomHeader, DomInclude, DomIncludes, DomItem, DomLayout, DomLayoutDefault, DomLayoutFunction, DomLayoutItem, DomLocale, DomPalette, DomPoint, DomPointF, DomProperty, DomPropertySpecifications, DomPropertyToolTip, DomRect, DomRectF, DomResource, DomResourceIcon, DomResourcePixmap, DomResources, DomRow, DomSize, DomSizeF, DomSizePolicy, DomSlots, DomSpacer, DomString, DomStringList, DomStringPropertySpecification, DomTabStops, DomTime, DomUI, DomUrl, DomWidget, GLDEBUGPROC.Impl, GLsync, PropertyReaderInterface.Impl, QAbstractCameraController.InputState, QAbstractEventDispatcher.TimerInfo, QAbstractExtensionFactory.Impl, QAbstractExtensionManager.Impl, QAbstractFileEngine, QAbstractFileEngineHandler, QAbstractFileEngineIterator, QAbstractFileIconProvider, QAbstractFormBuilder, QAbstractFunctor.Impl, QAbstractGraphicsShapeItem, QAbstractOAuth.ModifyParametersFunction.Impl, QAbstractOpenGLFunctions, QAbstractTextDocumentLayout.PaintContext, QAbstractTextDocumentLayout.Selection, QAbstractUndoItem.Impl, QAccelerometerFilter.Impl, QAccessible, QAccessible.ActivationObserver.Impl, QAccessible.InterfaceFactory.Impl, QAccessible.RootObjectHandler.Impl, QAccessible.State, QAccessible.UpdateHandler.Impl, QAccessibleActionInterface.Impl, QAccessibleBridge, QAccessibleEditableTextInterface.Impl, QAccessibleEvent, QAccessibleHyperlinkInterface.Impl, QAccessibleImageInterface.Impl, QAccessibleInterface.Impl, QAccessibleObject, QAccessibleTableCellInterface.Impl, QAccessibleTableInterface.Impl, QAccessibleTextInterface.Impl, QAccessibleValueInterface.Impl, QAmbientLightFilter.Impl, QAmbientTemperatureFilter.Impl, QAndroidApplication.Impl, QAnimationCallback, QAnimationClipData, QAspectJob, QAudioBuffer, QAudioDevice, QAudioFormat, QAuthenticator, QAxBase.Impl, QAxObjectInterface.Impl, QBackendNode, QBackendNodeMapper, QBackingStore, QBarDataItem, QBasicMutex, QBasicTimer, QBitArray, QBluetoothAddress, QBluetoothDeviceInfo, QBluetoothHostInfo, QBluetoothServiceInfo, QBrush, QByteArray, QByteArrayMatcher, QByteArrayView, QCalendar, QCalendar.YearMonthDay, QCameraDevice, QCameraFormat, QCanBusDevice.Filter, QCanBusDeviceInfo, QCanBusFactory.Impl, QCanBusFrame, QCanBusFrame.TimeStamp, QCborArray, QCborError, QCborMap, QCborParserError, QCborStreamReader, QCborStreamReader.StringResult, QCborStreamWriter, QCborValue, QChannel, QChannelComponent, QCocoaGLContext.Impl, QCocoaWindow.Impl, QCollator, QCollatorSortKey, QColor, QColormap, QColorSpace, QColorTransform, QCommandLineOption, QCommandLineParser, QCompassFilter.Impl, QCompressedHelpInfo, QCryptographicHash, QCursor, QDataStream, QDate, QDateTime, QDBusArgument, QDBusConnection, QDBusContext.Impl, QDBusError, QDBusMessage, QDBusObjectPath, QDBusPendingCall.Impl, QDBusPendingReply, QDBusReply, QDBusSignature, QDBusUnixFileDescriptor, QDBusVariant, QDeadlineTimer, QDebug, QDebugStateSaver, QDesignerContainerExtension.Impl, QDesignerCustomWidgetCollectionInterface.Impl, QDesignerCustomWidgetInterface.Impl, QDesignerDynamicPropertySheetExtension.Impl, QDesignerFormEditorPluginInterface.Impl, QDesignerFormWindowCursorInterface.Impl, QDesignerLanguageExtension.Impl, QDesignerLayoutDecorationExtension.Impl, QDesignerMemberSheetExtension.Impl, QDesignerMetaDataBaseItemInterface.Impl, QDesignerOptionsPageInterface.Impl, QDesignerPromotionInterface.Impl, QDesignerPromotionInterface.PromotedClass, QDesignerPropertySheetExtension.Impl, QDesignerSettingsInterface.Impl, QDesignerTaskMenuExtension.Impl, QDesignerWidgetBoxInterface.Category, QDesignerWidgetBoxInterface.Widget, QDesignerWidgetDataBaseItemInterface.Impl, QDesktopServices, QDir, QDirIterator, QDnsDomainNameRecord, QDnsHostAddressRecord, QDnsMailExchangeRecord, QDnsServiceRecord, QDnsTextRecord, QDomImplementation, QDomNamedNodeMap, QDomNode, QDomNodeList, QDtlsClientVerifier.GeneratorParameters, QEasingCurve, QEasingCurve.EasingFunction.Impl, QEGLContext.Impl, QElapsedTimer, QEvent, QEventLoopLocker, QEventPoint, QFactoryInterface.Impl, QFileInfo, QFont, QFontDatabase, QFontInfo, QFontMetrics, QFontMetricsF, QFormLayout.TakeRowResult, QFunctionPointer, QFutureInterfaceBase, QGenericPluginFactory, QGeoAddress, QGeoAreaMonitorInfo, QGeoCoordinate, QGeoLocation, QGeoPositionInfo, QGeoPositionInfoSourceFactory.Impl, QGeoSatelliteInfo, QGeoShape, QGestureRecognizer, QGLXContext.Impl, QGlyphRun, QGradient, QGraphicsItem.Impl, QGraphicsItemGroup, QGraphicsLayout, QGraphicsLayoutItem.Impl, QGraphicsLineItem, QGraphicsPixmapItem, QGyroscopeFilter.Impl, QHashSeed, QHelpContentItem, QHelpFilterData, QHelpLink, QHelpSearchQuery, QHelpSearchResult, QHostAddress, QHostInfo, QHstsPolicy, QHttp2Configuration, QHttpPart, QHumidityFilter.Impl, QIcon, QIconEngine, QIconEngine.ScaledPixmapArgument, QImage, QImageIOHandler, QImageReader, QImageWriter, QInputMethodEvent.Attribute, QIPv6Address, QIRProximityFilter.Impl, QItemEditorCreatorBase.Impl, QItemEditorFactory, QItemSelectionRange, QJSManagedValue, QJSNumberCoercion, QJsonArray, QJsonDocument, QJsonObject, QJsonParseError, QJsonValue, QJSPrimitiveValue, QJSValue, QJSValueIterator, QKeyCombination, QKeyFrame, QKeySequence, QLayoutItem.Impl, QLevelOfDetailBoundingSphere, QLibraryInfo, QLidFilter.Impl, QLightFilter.Impl, QLine, QLineF, QListWidgetItem, QLocale, QLockFile, QLoggingCategory, QLoggingCategory.CategoryFilter.Impl, QLowEnergyAdvertisingData, QLowEnergyAdvertisingParameters, QLowEnergyAdvertisingParameters.AddressInfo, QLowEnergyCharacteristic, QLowEnergyCharacteristicData, QLowEnergyConnectionParameters, QLowEnergyDescriptor, QLowEnergyDescriptorData, QLowEnergyServiceData, QMagnetometerFilter.Impl, QMargins, QMarginsF, QMatrix2x2, QMatrix2x3, QMatrix2x4, QMatrix3x2, QMatrix3x3, QMatrix3x4, QMatrix4x2, QMatrix4x3, QMatrix4x4, QMediaFormat, QMediaMetaData, QMediaTimeRange, QMediaTimeRange.Interval, QMessageAuthenticationCode, QMessageLogContext, QMetaEnum, QMetaMethod, QMetaProperty, QMetaType, QMetaType.GenericObject, QMetaType.GenericValue, QMimeDatabase, QMimeType, QModbusDataUnit, QModbusDeviceIdentification, QModbusPdu, QModbusRequestCalculatorFunction.Impl, QModbusResponseCalculatorFunction.Impl, QModbusTcpConnectionObserver.Impl, QModelIndex, QNdefFilter, QNdefFilter.Record, QNdefRecord, QNearFieldTarget.RequestId, QNetworkAddressEntry, QNetworkCacheMetaData, QNetworkCookie, QNetworkDatagram, QNetworkInterface, QNetworkProxy, QNetworkProxyFactory, QNetworkProxyQuery, QNetworkRequest, QNodeId, QNodeIdTypePair, QOAuth1Signature, QObject, QOcspResponse, QOpenGLBuffer, QOpenGLDebugMessage, QOpenGLFramebufferObject, QOpenGLFramebufferObjectFormat, QOpenGLFunctions, QOpenGLPaintDevice, QOpenGLPixelTransferOptions, QOpenGLTexture, QOpenGLTextureBlitter, QOpenGLVersionFunctionsFactory, QOpenGLVersionProfile, QOpenGLVersionStatus, QOpenGLVertexArrayObject.Binder, QOperatingSystemVersion, QOrientationFilter.Impl, QOutputRange, QPagedPaintDevice.Impl, QPageLayout, QPageRanges, QPageRanges.Range, QPageSize, QPaintDevice.Impl, QPaintEngine, QPaintEngineState, QPainter, QPainter.PixmapFragment, QPainterPath, QPainterPath.Element, QPainterPathStroker, QPalette, QPartialOrdering, QPen, QPersistentModelIndex, QPicture, QPixelFormat, QPixmap, QPixmapCache, QPixmapCache.Key, QPoint, QPointF, QPointingDeviceUniqueId, QPressureFilter.Impl, QPrintEngine, QPrinter, QPrinterInfo, QProcessEnvironment, QPropertyBindingError, QPropertyObserverBase, QProximityFilter.Impl, QQmlAbstractUrlInterceptor.Impl, QQmlContext.PropertyPair, QQmlDebuggingEnabler, QQmlEngineExtensionInterface.Impl, QQmlError, QQmlExtensionInterface.Impl, QQmlFile, QQmlIncubationController.Impl, QQmlIncubator, QQmlListProperty, QQmlListReference, QQmlNetworkAccessManagerFactory.Impl, QQmlParserStatus.Impl, QQmlProperty, QQmlPropertyValueSource.Impl, QQmlScriptString, QQmlTypesExtensionInterface.Impl, QQuaternion, QQuick3D, QQuick3DGeometry.Attribute, QQuick3DInstancing.InstanceTableEntry, QQuickFramebufferObject.Renderer, QQuickGraphicsConfiguration, QQuickGraphicsDevice, QQuickItem.UpdatePaintNodeData, QQuickRenderTarget, QQuickWindow.GraphicsStateInfo, QRandomGenerator, QRawFont, QRayCasterHit, QReadWriteLock, QRect, QRectF, QRecursiveMutex, QRegion, QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator, QRemoteObjectHostBase.RemoteObjectNameFilter.Impl, QRemoteObjectNode.RemoteObjectSchemaHandler.Impl, QRemoteObjectPendingCall.Impl, QRemoteObjectPendingReply, QRemoteObjectSourceLocationInfo, QResource, QRgba64, QRotationFilter.Impl, QRunnable.Impl, QScatterDataItem, QScrollerProperties, QScxmlCompiler, QScxmlCompiler.Loader.Impl, QScxmlDataModel.ForeachLoopBody.Impl, QScxmlError, QScxmlEvent, QScxmlExecutableContent.AssignmentInfo, QScxmlExecutableContent.EvaluatorInfo, QScxmlExecutableContent.ForeachInfo, QScxmlExecutableContent.InvokeInfo, QScxmlExecutableContent.ParameterInfo, QScxmlTableData.Impl, QSemaphore, QSensorBackendFactory.Impl, QSensorChangesInterface.Impl, QSensorFilter.Impl, QSensorManager, QSensorPluginInterface.Impl, QSerialPortInfo, QSettings.ReadFunc.Impl, QSettings.WriteFunc.Impl, QSGD3D11Texture.Impl, QSGGeometry, QSGGeometry.Attribute, QSGGeometry.AttributeSet, QSGGeometry.ColoredPoint2D, QSGGeometry.Point2D, QSGGeometry.TexturedPoint2D, QSGMaterial, QSGMaterialShader, QSGMaterialShader.GraphicsPipelineState, QSGMaterialShader.RenderState, QSGMaterialType, QSGMetalTexture.Impl, QSGNode, QSGNodeVisitor, QSGOpenGLTexture.Impl, QSGRendererInterface.Impl, QSGRenderNode.RenderState, QSGVulkanTexture.Impl, QSignalBlocker, QSize, QSizeF, QSizePolicy, QSpacerItem, QSpontaneKeyEvent, QSqlDatabase, QSqlDriverCreatorBase, QSqlError, QSqlField, QSqlQuery, QSqlRecord, QSqlRelation, QSqlResult, QSslCertificate, QSslCertificateExtension, QSslCipher, QSslConfiguration, QSslDiffieHellmanParameters, QSslEllipticCurve, QSslError, QSslKey, QSslPreSharedKeyAuthenticator, QStandardItem, QStandardPaths, QStaticPlugin, QStaticText, QStorageInfo, QString, QStringConverterBase, QStringConverterBase.State, QStringMatcher, QStyleFactory, QStyleHintReturn, QStyleOption, QSurface.Impl, QSurfaceDataItem, QSurfaceFormat, QSvgGenerator, QSystemSemaphore, QTableWidgetItem, QTableWidgetSelectionRange, QTapFilter.Impl, QtConcurrent.ThreadEngineStarter, QTemporaryDir, QTest.QBenchmarkIterationController, QTest.QTouchEventSequence, QTestEvent, QTextBlock, QTextBlock.iterator, QTextBlockUserData, QTextBoundaryFinder, QTextCursor, QTextDocument.ResourceProvider.Impl, QTextDocumentFragment, QTextDocumentWriter, QTextEdit.ExtraSelection, QTextFormat, QTextFragment, QTextFrame.iterator, QTextInlineObject, QTextItem, QTextLayout, QTextLayout.FormatRange, QTextLength, QTextLine, QTextObjectInterface.Impl, QTextOption, QTextOption.Tab, QTextStream, QTextTableCell, QTextureData, QTextureDataUpdate, QTextureImageData, QTextureImageData.DataConverter.Impl, QTextureImageDataGenerator.Impl, QtGadget, QThreadStorage, QTileRules, QTiltFilter.Impl, QTime, QTimeZone, QTimeZone.OffsetData, QtMessageHandler.Impl, QToolTip, QtQml.ObjectCallback.Impl, QtQml.QQmlAttachedPropertiesFunc.Impl, QtQml.ValueCallback.Impl, QTransform, QTreeWidgetItem, QTreeWidgetItemIterator, QUndoCommand, QUntypedBindable, QUntypedPropertyBinding, QUntypedPropertyData, QUrl, QUrlQuery, QUuid, QVariant, QVector2D, QVector3D, QVector4D, QVersionNumber, QVideoFrame, QVideoFrame.PaintOptions, QVideoFrameFormat, QWaitCondition, QWebEngineCertificateError, QWebEngineClientCertificateSelection, QWebEngineClientCertificateStore, QWebEngineCookieStore.FilterRequest, QWebEngineFindTextResult, QWebEngineFullScreenRequest, QWebEngineHistoryItem, QWebEngineHttpRequest, QWebEngineLoadingInfo, QWebEngineProfile.IconAvailableCallback2.Impl, QWebEngineProfile.IconAvailableCallback3.Impl, QWebEngineQuotaRequest, QWebEngineRegisterProtocolHandlerRequest, QWebEngineScript, QWebEngineScriptCollection, QWebEngineSettings, QWebEngineUrlRequestInfo, QWebEngineUrlScheme, QWebSocketCorsAuthenticator, QWGLContext.Impl, QWhatsThis, QWidgetItem, QWindowsApplication.Impl, QWindowsWindow.Impl, QX11Application.Impl, QXcbScreen.Impl, QXcbWindow.Impl, QXmlStreamAttribute, QXmlStreamEntityDeclaration, QXmlStreamEntityResolver, QXmlStreamNamespaceDeclaration, QXmlStreamNotationDeclaration, QXmlStreamReader, QXmlStreamWriter

public abstract class QtObject extends NativeUtility.Object implements QtObjectInterface
Super class of all native types provided by QtJambi. The native counterpart is owned by the object if it has been constructed in Java. This counterpart is assumed to be created during Java constructor call and deleted as soon as garbage collection deletes the Java object. Call dispose() to disconnect the Java object from its the native counterpart. If the native component is owned by by Java it is deleted this way. Otherwise, only the link between native and Java object is removed. To check if the Java object is alive use isDisposed().
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static final class 
    This type is used as solo argument for internal constructors.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Creates a new QtObject.
    protected
    Constructor for internal use only.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Explicitly removes the native resources held by the object.
    boolean
    equals(Object other)
    Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.
    final boolean
    Is java object connected to native object?

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QtObject

      public QtObject()
      Creates a new QtObject.
    • QtObject

      protected QtObject(QtObject.QPrivateConstructor p)
      Constructor for internal use only.
      Parameters:
      p - expected to be null.
  • Method Details

    • dispose

      public final void dispose()
      Explicitly removes the native resources held by the object. Note that though this method does not guarantee that the object will be garbage collected, it is not safe to reference the object after it has been disposed.
      Specified by:
      dispose in interface QtObjectInterface
      Overrides:
      dispose in class NativeUtility.Object
    • isDisposed

      @QtUninvokable public final boolean isDisposed()
      Is java object connected to native object?
      Specified by:
      isDisposed in interface QtObjectInterface
      Overrides:
      isDisposed in class NativeUtility.Object
      Returns:
      true if disposed
    • equals

      public boolean equals(Object other)
      Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation.
      Overrides:
      equals in class NativeUtility.Object
      Parameters:
      other - other object
      Returns:
      true if the native counterpart of the two objects are one and the same.