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, QAbstractFormBuilder, QAbstractGraphicsShapeItem, QAbstractOpenGLFunctions, QAbstractTextDocumentLayout.PaintContext, QAbstractTextDocumentLayout.Selection, QAbstractVideoBuffer, QAbstractXmlNodeModel, QAbstractXmlReceiver, QAccessible, QAccessible.State, QAccessibleBridge, QAccessibleEvent, QAccessibleObject, QAnimationCallback, QAnimationClipData, QAspectJob, QAssociativeConstIterator, QAudioBuffer, QAudioDeviceInfo, QAudioEncoderSettings, QAudioFormat, QAuthenticator, QBackendNode, QBackendNodeMapper, QBackingStore, QBarDataItem, QBasicMutex, QBasicTimer, QBitArray, QBluetoothAddress, QBluetoothDeviceInfo, QBluetoothHostInfo, QBluetoothServiceInfo, QBluetoothTransferRequest, QBrush, QByteArray, QByteArray.FromBase64Result, QByteArrayMatcher, QCalendar, QCalendar.YearMonthDay, QCamera.FrameRateRange, QCameraFocusZone, QCameraInfo, QCameraViewfinderSettings, QCanBusDevice.Filter, QCanBusDeviceInfo, QCanBusFrame, QCanBusFrame.TimeStamp, 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, QDomImplementation, QDomNamedNodeMap, QDomNode, QDomNodeList, QDtlsClientVerifier.GeneratorParameters, QEasingCurve, QElapsedTimer, QEvent, QEventLoopLocker, QFileIconProvider, 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, QHelpContentItem, QHelpFilterData, QHelpLink, QHelpSearchQuery, QHelpSearchResult, QHostAddress, QHostInfo, QHstsPolicy, QHttp2Configuration, QHttpPart, QIcon, QIconEngine, QIconEngine.AvailableSizesArgument, QIconEngine.ScaledPixmapArgument, QImage, QImageEncoderSettings, QImageIOHandler, QImageReader, QImageWriter, QInputMethodEvent.Attribute, QIPv6Address, QItemEditorFactory, QItemSelectionRange, QJsonArray, QJsonDocument, QJsonObject, QJsonParseError, QJsonValue, QJSValue, QJSValueIterator, QKeyFrame, QKeySequence, QLevelOfDetailBoundingSphere, QLibraryInfo, QLine, QLineF, QLinkedList, QLinuxFbFunctions, QList, QListWidgetItem, QLocale, QLockFile, QLoggingCategory, QLowEnergyAdvertisingData, QLowEnergyAdvertisingParameters, QLowEnergyAdvertisingParameters.AddressInfo, QLowEnergyCharacteristic, QLowEnergyCharacteristicData, QLowEnergyConnectionParameters, QLowEnergyDescriptor, QLowEnergyDescriptorData, QLowEnergyServiceData, QMacPasteboardMime, QMap, QMargins, QMarginsF, QMatrix2x2, QMatrix2x3, QMatrix2x4, QMatrix3x2, QMatrix3x3, QMatrix3x4, QMatrix4x2, QMatrix4x3, QMatrix4x4, QMediaContent, QMediaResource, QMediaServiceProviderHint, QMediaTimeInterval, QMediaTimeRange, 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, QNetworkConfiguration, QNetworkCookie, QNetworkDatagram, QNetworkInterface, QNetworkProxy, QNetworkProxyFactory, QNetworkProxyQuery, QNetworkRequest, QNodeId, QNodeIdTypePair, QOAuth1Signature, QObject, QOcspResponse, QOpenGLBuffer, QOpenGLDebugMessage, QOpenGLFramebufferObject, QOpenGLFramebufferObjectFormat, QOpenGLFunctions, QOpenGLPaintDevice, QOpenGLPixelTransferOptions, QOpenGLTexture, QOpenGLTextureBlitter, QOpenGLVersionProfile, QOpenGLVersionStatus, QOpenGLVertexArrayObject.Binder, QOperatingSystemVersion, QOutputRange, QPagedPaintDevice.Margins, QPageLayout, QPageSize, QPaintEngine, QPaintEngineState, QPainter, QPainter.PixmapFragment, QPainterPath, QPainterPath.Element, QPainterPathStroker, QPalette, QPen, QPersistentModelIndex, QPicture, QPictureIO, QPixelFormat, QPixmap, QPixmapCache, QPixmapCache.Key, QPlace, QPlaceAttribute, QPlaceCategory, QPlaceContactDetail, QPlaceContent, QPlaceContentRequest, QPlaceIcon, QPlaceMatchRequest, QPlaceRatings, QPlaceSearchRequest, QPlaceSearchResult, QPlaceSupplier, QPlaceUser, QPlatformIntegration, QPoint, QPointF, QPointingDeviceUniqueId, QPrintEngine, QPrinter, QPrinterInfo, QProcessEnvironment, QQmlContext.PropertyPair, QQmlDebuggingEnabler, QQmlError, QQmlFile, QQmlIncubator, QQmlListProperty, QQmlListReference, QQmlProperty, QQmlScriptString, QQuaternion, QQuick3D, QQuick3DGeometry.Attribute, QQuickFramebufferObject.Renderer, QQuickImageProvider, QQuickItem.UpdatePaintNodeData, QQuickWindow.GraphicsStateInfo, QRandomGenerator, QRawFont, QRayCasterHit, QReadWriteLock, QRect, QRectF, QRecursiveMutex, QRegExp, QRegion, QRegularExpression, QRegularExpressionMatch, QRegularExpressionMatchIterator, QRemoteObjectPendingReply, QRemoteObjectSourceLocationInfo, QResource, QRgba64, QScatterDataItem, QSceneChange, QScriptClass, QScriptClassPropertyIterator, QScriptContext, QScriptContextInfo, QScriptEngineAgent, QScriptProgram, QScriptString, QScriptSyntaxCheckResult, QScriptValue, 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, QSGMaterialRhiShader.GraphicsPipelineState, QSGMaterialRhiShader.RenderState, QSGMaterialShader, QSGMaterialShader.RenderState, QSGMaterialType, QSGNode, QSGNodeVisitor, QSGRenderNode.RenderState, QSignalBlocker, QSize, QSizeF, QSizePolicy, QSourceLocation, 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, QStringMatcher, QStyleFactory, QStyleHintReturn, QStyleOption, QSurfaceDataItem, QSurfaceFormat, QSvgGenerator, QSystemSemaphore, QTableWidgetItem, QTableWidgetSelectionRange, QtConcurrent.MedianDouble, QtConcurrent.ThreadEngineStarter, QTemporaryDir, QTest.QBenchmarkIterationController, QTest.QTouchEventSequence, QTestEvent, QTextBlock, QTextBlock.iterator, QTextBlockUserData, QTextBoundaryFinder, QTextCodec, QTextCodec.ConverterState, QTextCursor, QTextDecoder, QTextDocumentFragment, QTextDocumentWriter, QTextEdit.ExtraSelection, QTextEncoder, 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, QTouchDevice, QTouchEvent.TouchPoint, QTransform, QTreeWidgetItem, QTreeWidgetItemIterator, QUndoCommand, QUrl, QUrlQuery, QUuid, QVariant, QVector, QVector2D, QVector3D, QVector4D, QVersionNumber, QVideoEncoderSettings, QVideoFilterRunnable, QVideoFrame, QVideoSurfaceFormat, QVoice, QWaitCondition, QWebEngineCertificateError, QWebEngineClientCertificateSelection, QWebEngineClientCertificateStore, QWebEngineContextMenuData, QWebEngineCookieStore.FilterRequest, QWebEngineFindTextResult, QWebEngineFullScreenRequest, QWebEngineHistory, QWebEngineHistoryItem, QWebEngineHttpRequest, QWebEngineQuotaRequest, QWebEngineRegisterProtocolHandlerRequest, QWebEngineScript, QWebEngineScriptCollection, QWebEngineSettings, QWebEngineUrlRequestInfo, QWebEngineUrlScheme, QWebSocketCorsAuthenticator, QWhatsThis, QWidgetItem, QWinJumpListCategory, QWinJumpListItem, QX11Info, QXmlAttributes, QXmlDefaultHandler, QXmlInputSource, QXmlItem, QXmlLocator, QXmlName, QXmlNamePool, QXmlNamespaceSupport, QXmlNodeModelIndex, QXmlParseException, QXmlQuery, QXmlReader, QXmlResultItems, QXmlSchema, QXmlSchemaValidator, 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.