Module qtjambi
Package io.qt

Class QtObject

java.lang.Object
io.qt.QtObject
All Implemented Interfaces:
QtObjectInterface
Direct Known Subclasses:
CustomWidgetInterface, GLsync, QAbstractCameraController.InputState, QAbstractEventDispatcher.TimerInfo, QAbstractEventDispatcher.TimerInfoV2, QAbstractFileEngine, QAbstractFileEngineHandler, QAbstractFileEngineIterator, QAbstractFileIconProvider, QAbstractFormBuilder, QAbstractGraphicsShapeItem, QAbstractOpenGLFunctions, QAbstractTextDocumentLayout.PaintContext, QAbstractTextDocumentLayout.Selection, QAccessible, QAccessible.State, QAccessibleBridge, QAccessibleEvent, QAccessibleObject, QAnimationCallback, QAnimationClipData, QAspectJob, QAssociativeConstIterator, QAudioBuffer, QAudioDevice, QAudioFormat, QAuthenticator, QBackendNode, QBackendNodeMapper, QBackingStore, QBarDataItem, QBarDataItem, QBasicMutex, QBasicTimer, QBitArray, QBluetoothAddress, QBluetoothDeviceInfo, QBluetoothHostInfo, QBluetoothServiceInfo, QBrush, QByteArray, QByteArray.FromBase64Result, QByteArrayMatcher, QByteArrayView, QCalendar, QCalendar.YearMonthDay, QCameraDevice, QCameraFormat, QCanBusDevice.Filter, QCanBusDeviceInfo, QCanBusFrame, QCanBusFrame.TimeStamp, QCanDbcFileParser, QCanFrameProcessor, QCanFrameProcessor.ParseResult, QCanMessageDescription, QCanSignalDescription, QCanSignalDescription.MultiplexValueRange, QCanUniqueIdDescription, QCapturableWindow, QCborArray, QCborError, QCborMap, QCborParserError, QCborStreamReader, QCborStreamReader.StringResult, QCborStreamWriter, QCborValue, QChannel, QChannelComponent, QChar, QCollator, QCollatorSortKey, QColor, QColormap, QColorSpace, QColorTransform, QCommandLineOption, QCommandLineParser, QCompressedHelpInfo, QConstSpan, QCryptographicHash, QCursor, QDataStream, QDate, QDateTime, QDBusArgument, QDBusConnection, QDBusError, QDBusMessage, QDBusObjectPath, QDBusPendingReply, QDBusReply, QDBusSignature, QDBusUnixFileDescriptor, QDBusVariant, QDeadlineTimer, QDebug, QDebugStateSaver, QDesignerPromotionInterface.PromotedClass, QDesignerWidgetBoxInterface.Category, QDesignerWidgetBoxInterface.Widget, QDesktopServices, QDir, QDirIterator, QDirListing, QDirListing.DirEntry, QDnsDomainNameRecord, QDnsHostAddressRecord, QDnsMailExchangeRecord, QDnsServiceRecord, QDnsTextRecord, QDnsTlsAssociationRecord, QDomDocument.ParseResult, QDomImplementation, QDomNamedNodeMap, QDomNode, QDomNodeList, QDtlsClientVerifier.GeneratorParameters, QEasingCurve, QElapsedTimer, QEvent, QEventLoopLocker, QEventPoint, QFileInfo, QFont, QFont.Tag, QFontDatabase, QFontInfo, QFontMetrics, QFontMetricsF, QFormDataBuilder, QFormDataPartBuilder, QFormLayout.TakeRowResult, QFunctionPointer, QFutureInterfaceBase, QGenericPluginFactory, QGeoAddress, QGeoAreaMonitorInfo, QGeoCoordinate, QGeoLocation, QGeoManeuver, QGeoPositionInfo, QGeoRoute, QGeoRouteRequest, QGeoRouteSegment, QGeoSatelliteInfo, QGeoShape, QGestureRecognizer, QGlyphRun, QGradient, QGraphicsItemGroup, QGraphicsLayout, QGraphicsLineItem, QGraphicsPixmapItem, QGraphsLine, QGraphsThemeDirtyBitField, QHash, QHashSeed, QHelpContentItem, QHelpFilterData, QHelpLink, QHelpSearchQuery, QHelpSearchResult, QHostAddress, QHostInfo, QHstsPolicy, QHttp1Configuration, QHttp2Configuration, QHttpHeaders, QHttpPart, QHttpServerRequest, QHttpServerResponder, QHttpServerResponse, QHttpServerRouter, QHttpServerRouterRule, QHttpServerWebSocketUpgradeResponse, QIcon, QIconEngine, QIconEngine.ScaledPixmapArgument, QImage, QImageIOHandler, QImageReader, QImageWriter, QInputMethodEvent.Attribute, QIPv6Address, QItemEditorFactory, QItemSelectionRange, QJSManagedValue, QJSNumberCoercion, QJsonArray, QJsonDocument, QJsonObject, QJsonParseError, QJsonValue, QJSPrimitiveValue, QJSValue, QJSValueIterator, QKeyCombination, QKeyFrame, QKeySequence, QLegendData, QLevelOfDetailBoundingSphere, QLibraryInfo, QLine, QLineF, QList, QListWidgetItem, QLocale, QLockFile, QLoggingCategory, QLowEnergyAdvertisingData, QLowEnergyAdvertisingParameters, QLowEnergyAdvertisingParameters.AddressInfo, QLowEnergyCharacteristic, QLowEnergyCharacteristicData, QLowEnergyConnectionParameters, QLowEnergyDescriptor, QLowEnergyDescriptorData, QLowEnergyServiceData, QMap, 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, QModelIndex, QMultiHash, QMultiMap, QNativeIpcKey, QNdefFilter, QNdefFilter.Record, QNdefRecord, QNearFieldTarget.RequestId, QNetworkAddressEntry, QNetworkCacheMetaData, QNetworkCookie, QNetworkDatagram, QNetworkInterface, QNetworkProxy, QNetworkProxyFactory, QNetworkProxyQuery, QNetworkRequest, QNetworkRequestFactory, QNodeId, QNodeIdTypePair, QOAuth1Signature, QObject, QOcspResponse, QOpenGLBuffer, QOpenGLDebugMessage, QOpenGLFramebufferObject, QOpenGLFramebufferObjectFormat, QOpenGLFunctions, QOpenGLPaintDevice, QOpenGLPixelTransferOptions, QOpenGLTexture, QOpenGLTextureBlitter, QOpenGLVersionFunctionsFactory, QOpenGLVersionProfile, QOpenGLVersionStatus, QOpenGLVertexArrayObject.Binder, QOperatingSystemVersion, QOutputRange, QPageLayout, QPageRanges, QPageRanges.Range, QPageSize, QPaintEngine, QPaintEngineState, QPainter, QPainter.PixmapFragment, QPainterPath, QPainterPath.Element, QPainterPathStroker, QPalette, QPartialOrdering, QPdfDocumentRenderOptions, QPdfLink, QPdfOutputIntent, QPdfSelection, QPen, QPermission, QPersistentModelIndex, QPicture, QPixelFormat, QPixmap, QPixmapCache, QPixmapCache.Key, QPlace, QPlaceAttribute, QPlaceCategory, QPlaceContactDetail, QPlaceContent, QPlaceContentRequest, QPlaceIcon, QPlaceMatchRequest, QPlaceRatings, QPlaceSearchRequest, QPlaceSearchResult, QPlaceSupplier, QPlaceUser, QPlatformIntegration, QPluginParsedMetaData, QPoint, QPointF, QPointingDeviceUniqueId, QPrintEngine, QPrinter, QPrinterInfo, QProcessEnvironment, QPropertyBindingError, QPropertyObserverBase, QQmlContext.PropertyPair, QQmlDebuggingEnabler, QQmlError, QQmlFile, QQmlIncubator, QQmlListProperty, QQmlListReference, QQmlProperty, QQmlScriptString, QQuaternion, QQuick3D, QQuick3DGeometry.Attribute, QQuick3DGeometry.TargetAttribute, QQuick3DInstancing.InstanceTableEntry, QQuickFramebufferObject.Renderer, QQuickGraphicsConfiguration, QQuickGraphicsDevice, QQuickItem.UpdatePaintNodeData, QQuickRenderTarget, QQuickRhiItemRenderer, QQuickWindow.GraphicsStateInfo, QRandomGenerator, QRawFont, QRayCasterHit, QReadWriteLock, QRect, QRectF, QRecursiveMutex, QRegion, QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator, QRemoteObjectPendingReply, QRemoteObjectSourceLocationInfo, QResource, QRestReply, QRgba64, QRhi, QRhiBuffer.NativeBuffer, QRhiColorAttachment, QRhiDepthStencilClearValue, QRhiDriverInfo, QRhiGraphicsPipeline.StencilOpState, QRhiGraphicsPipeline.TargetBlend, QRhiInitParams, QRhiNativeHandles, QRhiReadbackDescription, QRhiReadbackResult, QRhiRenderBuffer.NativeRenderBuffer, QRhiResource, QRhiResourceUpdateBatch, QRhiScissor, QRhiShaderResourceBinding, QRhiShaderResourceBinding.TextureAndSampler, QRhiShaderStage, QRhiStats, QRhiSwapChainHdrInfo, QRhiSwapChainProxyData, QRhiTexture.NativeTexture, QRhiTexture.ViewFormat, QRhiTextureCopyDescription, QRhiTextureRenderTargetDescription, QRhiTextureSubresourceUploadDescription, QRhiTextureUploadDescription, QRhiTextureUploadEntry, QRhiVertexInputAttribute, QRhiVertexInputBinding, QRhiVertexInputLayout, QRhiViewport, QScatterDataItem, QScatterDataItem, QScrollerProperties, QScxmlCompiler, QScxmlError, QScxmlEvent, QScxmlExecutableContent.AssignmentInfo, QScxmlExecutableContent.EvaluatorInfo, QScxmlExecutableContent.ForeachInfo, QScxmlExecutableContent.InvokeInfo, QScxmlExecutableContent.ParameterInfo, QSemaphore, QSensorManager, QSequentialConstIterator, QSerialPortInfo, QSet, QSGGeometry, QSGGeometry.Attribute, QSGGeometry.AttributeSet, QSGGeometry.ColoredPoint2D, QSGGeometry.Point2D, QSGGeometry.TexturedPoint2D, QSGMaterial, QSGMaterialShader, QSGMaterialShader.GraphicsPipelineState, QSGMaterialShader.RenderState, QSGMaterialType, QSGNode, QSGNodeVisitor, QSGRenderNode.RenderState, QShader, QShader.NativeShaderInfo, QShader.SeparateToCombinedImageSamplerMapping, QShaderCode, QShaderDescription, QShaderDescription.BlockVariable, QShaderDescription.BuiltinVariable, QShaderDescription.InOutVariable, QShaderDescription.PushConstantBlock, QShaderDescription.StorageBlock, QShaderDescription.UniformBlock, QShaderKey, QShaderVersion, 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, QSurfaceDataItem, QSurfaceDataItem, QSurfaceFormat, QSvgGenerator, QSystemSemaphore, Qt.partial_ordering, Qt.strong_ordering, Qt.weak_ordering, QTableWidgetItem, QTableWidgetSelectionRange, QtConcurrent.ThreadEngineStarter, QTemporaryDir, QTest.QBenchmarkIterationController, QTest.QTouchEventSequence, QTestEvent, QTextBlock, QTextBlock.iterator, QTextBlockUserData, QTextBoundaryFinder, QTextCursor, QTextDocumentFragment, QTextDocumentWriter, QTextEdit.ExtraSelection, QTextFormat, QTextFragment, QTextFrame.iterator, QTextInlineObject, QTextItem, QTextLayout, QTextLayout.FormatRange, QTextLength, QTextLine, QTextOption, QTextOption.Tab, QTextStream, QTextTableCell, QTextToSpeechPlugin, QTextureData, QTextureDataUpdate, QTextureImageData, QtGadget, QThreadStorage, QTileRules, QTime, QTimeZone, QTimeZone.OffsetData, QToolTip, QTransform, QTreeWidgetItem, QTreeWidgetItemIterator, QUndoCommand, QUntypedBindable, QUntypedPropertyBinding, QUntypedPropertyData, QUrl, QUrlQuery, QUtiMimeConverter, QUuid, QUuid.Id128Bytes, QVariant, QVector2D, QVector3D, QVector4D, QVersionNumber, QVideoFrame, QVideoFrame.PaintOptions, QVideoFrameFormat, QVoice, QWaitCondition, QWebEngineCertificateError, QWebEngineClientCertificateSelection, QWebEngineClientCertificateStore, QWebEngineCookieStore.FilterRequest, QWebEngineDesktopMediaRequest, QWebEngineFileSystemAccessRequest, QWebEngineFindTextResult, QWebEngineFrame, QWebEngineFullScreenRequest, QWebEngineHistoryItem, QWebEngineHttpRequest, QWebEngineLoadingInfo, QWebEnginePermission, QWebEngineQuotaRequest, QWebEngineRegisterProtocolHandlerRequest, QWebEngineScript, QWebEngineScriptCollection, QWebEngineSettings, QWebEngineUrlRequestInfo, QWebEngineUrlScheme, QWebEngineWebAuthPinRequest, QWebSocketCorsAuthenticator, QWebSocketHandshakeOptions, QWhatsThis, QWidgetItem, QWindowsMimeConverter, QXmlStreamAttribute, QXmlStreamEntityDeclaration, QXmlStreamEntityResolver, QXmlStreamNamespaceDeclaration, QXmlStreamNotationDeclaration, QXmlStreamReader, QXmlStreamWriter

public abstract class QtObject extends 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().
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new QtObject.
  • 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.
    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.
  • 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
    • isDisposed

      @QtUninvokable public final boolean isDisposed()
      Is java object connected to native object?
      Specified by:
      isDisposed in interface QtObjectInterface
      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.
      Parameters:
      other - other object
      Returns:
      true if the native counterpart of the two objects are one and the same.