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, 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, 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, QCborArray, QCborError, QCborMap, QCborParserError, QCborStreamReader, QCborStreamReader.StringResult, QCborStreamWriter, QCborValue, QChannel, QChannelComponent, QChar, QCollator, QCollatorSortKey, QColor, QColormap, QColorSpace, QColorTransform, QCommandLineOption, QCommandLineParser, QCompressedHelpInfo, 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, QDnsDomainNameRecord, QDnsHostAddressRecord, QDnsMailExchangeRecord, QDnsServiceRecord, QDnsTextRecord, QDomDocument.ParseResult, QDomImplementation, QDomNamedNodeMap, QDomNode, QDomNodeList, QDtlsClientVerifier.GeneratorParameters, QEasingCurve, QElapsedTimer, QEvent, QEventLoopLocker, QEventPoint, QFileInfo, QFont, QFontDatabase, QFontInfo, QFontMetrics, QFontMetricsF, QFormLayout.TakeRowResult, QFunctionPointer, QFutureInterfaceBase, QGenericPluginFactory, QGeoAddress, QGeoAreaMonitorInfo, QGeoCoordinate, QGeoLocation, QGeoManeuver, QGeoPositionInfo, QGeoRoute, QGeoRouteRequest, QGeoRouteSegment, QGeoSatelliteInfo, QGeoShape, QGestureRecognizer, QGlyphRun, QGradient, QGraphicsItemGroup, QGraphicsLayout, QGraphicsLineItem, QGraphicsPixmapItem, QHash, QHashSeed, QHelpContentItem, QHelpFilterData, QHelpLink, QHelpSearchQuery, QHelpSearchResult, QHostAddress, QHostInfo, QHstsPolicy, QHttp1Configuration, QHttp2Configuration, QHttpPart, QHttpServerRequest, QHttpServerResponder, QHttpServerResponse, QHttpServerRouter, QHttpServerRouterRule, 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, 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, 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, QOutputRange, QPageLayout, QPageRanges, QPageRanges.Range, QPageSize, QPaintEngine, QPaintEngineState, QPainter, QPainter.PixmapFragment, QPainterPath, QPainterPath.Element, QPainterPathStroker, QPalette, QPartialOrdering, QPdfDocumentRenderOptions, QPdfLink, 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, QQuick3DInstancing.InstanceTableEntry, QQuickFramebufferObject.Renderer, QQuickGraphicsConfiguration, QQuickGraphicsDevice, QQuickItem.UpdatePaintNodeData, QQuickRenderTarget, QQuickWindow.GraphicsStateInfo, QRandomGenerator, QRawFont, QRayCasterHit, QReadWriteLock, QRect, QRectF, QRecursiveMutex, QRegion, QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator, QRemoteObjectPendingReply, QRemoteObjectSourceLocationInfo, QResource, QRgba64, 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, 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, QSurfaceFormat, QSvgGenerator, QSystemSemaphore, 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, QVariant, QVector2D, QVector3D, QVector4D, QVersionNumber, QVideoFrame, QVideoFrame.PaintOptions, QVideoFrameFormat, QVoice, QWaitCondition, QWebEngineCertificateError, QWebEngineClientCertificateSelection, QWebEngineClientCertificateStore, QWebEngineCookieStore.FilterRequest, QWebEngineFileSystemAccessRequest, QWebEngineFindTextResult, QWebEngineFullScreenRequest, QWebEngineHistoryItem, QWebEngineHttpRequest, QWebEngineLoadingInfo, QWebEngineQuotaRequest, QWebEngineRegisterProtocolHandlerRequest, QWebEngineScript, QWebEngineScriptCollection, QWebEngineSettings, QWebEngineUrlRequestInfo, QWebEngineUrlScheme, 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.