Skip navigation links
  • Overview
  • Module
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Classes
  • Enums
  • Annotation Types
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Classes
    Class
    Description
    io.qt.QtResources
  • Deprecated Enums
    Enum
    Description
    io.qt.core.QVariant.Type
  • Deprecated Annotation Types
    Annotation Type
    Description
    io.qt.qml.util.QmlImportMajorVersion
    use QmlImport instead
  • Deprecated Fields
    Field
    Description
    io.qt.core.QFutureWatcherBase.paused
    Use suspending() instead.
    io.qt.gui.QGuiApplication.fontChanged
    Handle QEvent::ApplicationFontChange instead
    io.qt.gui.QGuiApplication.paletteChanged
    Handle QEvent::ApplicationPaletteChange instead
    io.qt.help.QHelpIndexWidget.linkActivated
    Use documentActivated() instead
    io.qt.help.QHelpIndexWidget.linksActivated
    Use documentsActivated() instead
    io.qt.webengine.core.QWebEngineNavigationRequest.actionChanged
  • Deprecated Methods
    Method
    Description
    io.qt.charts.QChart.axisX()
    io.qt.charts.QChart.axisX(QAbstractSeries)
    io.qt.charts.QChart.axisY()
    io.qt.charts.QChart.axisY(QAbstractSeries)
    io.qt.charts.QChart.setAxisX(QAbstractAxis)
    io.qt.charts.QChart.setAxisX(QAbstractAxis, QAbstractSeries)
    io.qt.charts.QChart.setAxisY(QAbstractAxis)
    io.qt.charts.QChart.setAxisY(QAbstractAxis, QAbstractSeries)
    io.qt.charts.QXYSeries.pointsVector()
    Use QXYSeries.points() instead
    io.qt.core.QAbstractListModel.columnCount(QModelIndex)
    io.qt.core.QAbstractListModel.hasChildren(QModelIndex)
    io.qt.core.QAbstractListModel.parent(QModelIndex)
    io.qt.core.QAbstractTableModel.hasChildren(QModelIndex)
    io.qt.core.QAbstractTableModel.parent(QModelIndex)
    io.qt.core.QFuture.isPaused()
    Use isSuspending() or isSuspended() instead.
    io.qt.core.QFuture.pause()
    Use suspend() instead.
    io.qt.core.QFuture.setPaused(boolean)
    Use setSuspended() instead.
    io.qt.core.QFuture.togglePaused()
    Use toggleSuspended() instead.
    io.qt.core.QFutureInterfaceBase.isPaused()
    Use isSuspending() or isSuspended() instead.
    io.qt.core.QFutureInterfaceBase.setPaused(boolean)
    Use setSuspended() instead.
    io.qt.core.QFutureInterfaceBase.togglePaused()
    Use toggleSuspended() instead.
    io.qt.core.QFutureWatcherBase.isPaused()
    Use isSuspending() or isSuspended() instead.
    io.qt.core.QFutureWatcherBase.pause()
    Use suspended() instead.
    io.qt.core.QFutureWatcherBase.setPaused(boolean)
    Use setSuspended() instead.
    io.qt.core.QFutureWatcherBase.togglePaused()
    Use toggleSuspended() instead.
    io.qt.core.QLibraryInfo.location(QLibraryInfo.LibraryPath)
    Use QLibraryInfo.path(io.qt.core.QLibraryInfo.LibraryPath) instead
    io.qt.core.QMetaProperty.type()
    io.qt.core.QMetaType.metaObjectForType(int)
    io.qt.core.QMetaType.sizeOf(int)
    io.qt.core.QMetaType.type(QByteArray)
    io.qt.core.QMetaType.type(String)
    io.qt.core.QMetaType.typeFlags(int)
    io.qt.core.QMetaType.typeName(int)
    io.qt.core.QSaveFile.close()
    io.qt.core.QScopedPointer.cleanup(O, Consumer<O>)
    io.qt.core.QString.fromUtf16(short[])
    Use char16_t* overload.
    io.qt.core.QUrl.fromClassPath(String)
    Use new QUrl("qrc:path") instead.
    io.qt.core.QVariant.canConvert(Object, QVariant.Type)
    io.qt.core.QVariant.convert(Object, QVariant.Type)
    io.qt.core.QVariant.convert(Object, QVariant.Type, boolean[])
    io.qt.gui.QDropEvent.keyboardModifiers()
    Use QDropEvent.modifiers() instead
    io.qt.gui.QDropEvent.mouseButtons()
    Use QDropEvent.buttons() instead
    io.qt.gui.QDropEvent.pos()
    Use position().toPoint()
    io.qt.gui.QDropEvent.posF()
    Use QDropEvent.position() instead
    io.qt.gui.QEnterEvent.globalPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QEnterEvent.globalX()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QEnterEvent.globalY()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QEnterEvent.localPos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QEnterEvent.pos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QEnterEvent.screenPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QEnterEvent.windowPos()
    Use QSinglePointEvent.scenePosition() instead
    io.qt.gui.QEnterEvent.x()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QEnterEvent.y()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QExposeEvent.region()
    Handle QPaintEvent instead
    io.qt.gui.QFont.legacyWeight()
    Use QFont.weight() instead
    io.qt.gui.QFont.setLegacyWeight(int)
    Use QFont.setWeight(io.qt.gui.QFont.Weight) instead
    io.qt.gui.QFontInfo.legacyWeight()
    Use QFontInfo.weight() instead
    io.qt.gui.QHoverEvent.pos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QHoverEvent.posF()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QIcon.actualSize(QWindow, QSize)
    Use actualSize(size) instead
    io.qt.gui.QIcon.actualSize(QWindow, QSize, QIcon.Mode)
    Use actualSize(size) instead
    io.qt.gui.QIcon.actualSize(QWindow, QSize, QIcon.Mode, QIcon.State)
    Use actualSize(size) instead
    io.qt.gui.QIcon.pixmap(QWindow, QSize)
    Use pixmap(size, devicePixelRatio) instead
    io.qt.gui.QIcon.pixmap(QWindow, QSize, QIcon.Mode)
    Use pixmap(size, devicePixelRatio) instead
    io.qt.gui.QIcon.pixmap(QWindow, QSize, QIcon.Mode, QIcon.State)
    Use pixmap(size, devicePixelRatio) instead
    io.qt.gui.QMouseEvent.globalPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QMouseEvent.globalX()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QMouseEvent.globalY()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QMouseEvent.localPos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QMouseEvent.screenPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QMouseEvent.windowPos()
    Use QSinglePointEvent.scenePosition() instead
    io.qt.gui.QMouseEvent.x()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QMouseEvent.y()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QNativeGestureEvent.globalPos()
    Use globalPosition().toPoint()
    io.qt.gui.QNativeGestureEvent.localPos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QNativeGestureEvent.pos()
    Use position().toPoint()
    io.qt.gui.QNativeGestureEvent.screenPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QNativeGestureEvent.windowPos()
    Use QSinglePointEvent.scenePosition() instead
    io.qt.gui.QPaintDeviceWindow.paintEngine()
    io.qt.gui.QShortcut.id()
    io.qt.gui.QSurfaceFormat.setColorSpace(QSurfaceFormat.ColorSpace)
    Use setColorSpace(QColorSpace) instead.
    io.qt.gui.QTabletEvent.globalPos()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QTabletEvent.globalPosF()
    Use QSinglePointEvent.globalPosition() instead
    io.qt.gui.QTabletEvent.globalX()
    Use globalPosition().x()
    io.qt.gui.QTabletEvent.globalY()
    Use globalPosition().y()
    io.qt.gui.QTabletEvent.hiResGlobalX()
    use globalPosition().x()
    io.qt.gui.QTabletEvent.hiResGlobalY()
    use globalPosition().y()
    io.qt.gui.QTabletEvent.pos()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QTabletEvent.posF()
    Use QSinglePointEvent.position() instead
    io.qt.gui.QTabletEvent.uniqueId()
    use pointingDevice().uniqueId()
    io.qt.gui.QTabletEvent.x()
    Use position().x()
    io.qt.gui.QTabletEvent.y()
    Use position().y()
    io.qt.gui.QTextCharFormat.fontFamily()
    Use QTextCharFormat.fontFamilies() instead
    io.qt.gui.QTextCharFormat.setFontFamily(String)
    Use QTextCharFormat.setFontFamilies(java.util.Collection) instead
    io.qt.gui.QTouchEvent.touchPoints()
    Use QPointerEvent.points() instead
    io.qt.help.QHelpSearchEngine.hitCount()
    io.qt.help.QHelpSearchEngine.hits(int, int)
    io.qt.help.QHelpSearchEngine.hitsCount()
    io.qt.help.QHelpSearchEngine.query()
    io.qt.help.QHelpSearchEngine.search(Collection<? extends QHelpSearchQuery>)
    io.qt.help.QHelpSearchQueryWidget.changeEvent(QEvent)
    io.qt.help.QHelpSearchQueryWidget.focusInEvent(QFocusEvent)
    io.qt.help.QHelpSearchQueryWidget.query()
    io.qt.help.QHelpSearchQueryWidget.setQuery(Collection<? extends QHelpSearchQuery>)
    io.qt.multimedia.QWaveDecoder.readData(byte[])
    io.qt.multimedia.QWaveDecoder.writeData(byte[])
    io.qt.qml.QJSPrimitiveValue.added(QJSPrimitiveValue)
    io.qt.qml.QJSPrimitiveValue.divided(QJSPrimitiveValue)
    io.qt.qml.QJSPrimitiveValue.modulo(QJSPrimitiveValue)
    io.qt.qml.QJSPrimitiveValue.multiplied(QJSPrimitiveValue)
    io.qt.qml.QJSPrimitiveValue.substracted(QJSPrimitiveValue)
    io.qt.qml.QQmlEngine.addNamedBundle(String, String)
    io.qt.qml.QQmlEngine.setUrlInterceptor(QQmlAbstractUrlInterceptor)
    io.qt.qml.QQmlEngine.urlInterceptor()
    io.qt.qml.QQmlFileSelector.get(QQmlEngine)
    io.qt.qml.QtQml.qmlRegisterExtendedType(Class<? extends QObject>, Class<? extends QObject>)
    Use qmlRegisterExtendedType(type, uri, versionMajor) instead
    io.qt.qml.QtQml.qmlRegisterInterface(Class<? extends QtObjectInterface>, String)
    Use qmlRegisterInterface(Classinvalid input: '<'? extends io.qt.QtObjectInterface> type, String uri, int versionMajor)
    io.qt.qml.QtQml.qmlRegisterType(Class<? extends QObject>)
    Use qmlRegisterAnonymousType instead
    io.qt.qt3d.render.QPaintedTextureImage.dataGenerator()
    io.qt.qt3d.render.QRenderAspect.dependencies()
    io.qt.qt3d.render.QRenderCaptureReply.captureId()
    io.qt.qt3d.render.QTextureImage.dataGenerator()
    io.qt.QtResources.addSearchPath(String)
    io.qt.QtResources.removeSearchPath(String)
    io.qt.QtUtilities.jambiTempDir()
    io.qt.quick.QSGNode.clearDirty()
    io.qt.quick.QSGNode.dirtyState()
    io.qt.sensors.QAccelerometerFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QAmbientLightFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QAmbientTemperatureFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QCompassFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QGyroscopeFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QHumidityFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QIRProximityFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QLidFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QLightFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QMagnetometerFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QOrientationFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QPressureFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QProximityFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QRotationFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QTapFilter.Impl.filter(QSensorReading)
    io.qt.sensors.QTiltFilter.Impl.filter(QSensorReading)
    io.qt.sql.QSqlField.setType(QVariant.Type)
    Use QSqlField.setMetaType(io.qt.core.QMetaType) instead
    io.qt.sql.QSqlField.type()
    Use QSqlField.metaType() instead
    io.qt.sql.QSqlQueryModel.setQuery(QSqlQuery)
    QSqlQuery is not meant to be copied. Pass it by move instead.
    io.qt.websockets.QWebSocketServer.nativeDescriptor()
    Use QWebSocketServer.socketDescriptor() instead
    io.qt.websockets.QWebSocketServer.setNativeDescriptor(long)
    Use QWebSocketServer.setSocketDescriptor(long) instead
    io.qt.widgets.QAbstractItemView.itemDelegate(QModelIndex)
    Use QAbstractItemView.itemDelegateForIndex(io.qt.core.QModelIndex) instead
    io.qt.widgets.QApplication.fontMetrics()
    Use the QFontMetricsF constructor instead.
    io.qt.widgets.QHeaderView.initStyleOption(QStyleOptionFrame)
    io.qt.widgets.QListWidget.setModel(QAbstractItemModel)
    io.qt.widgets.QTableWidget.setModel(QAbstractItemModel)
    io.qt.widgets.QTreeWidget.setModel(QAbstractItemModel)
    io.qt.widgets.QWidget.isTopLevel()
    Use QWidget.isWindow() instead
  • Deprecated Constructors
    Constructor
    Description
    io.qt.gui.QBitmap(QPixmap)
    Use fromPixmap instead.
    io.qt.gui.QFontDatabase()
    Call the static functions instead
    io.qt.gui.QNativeGestureEvent(Qt.NativeGestureType, QPointingDevice, QPointF, QPointF, QPointF, double, long, long)
    Use the other constructor
    io.qt.gui.QTouchEvent(QEvent.Type, QPointingDevice, Qt.KeyboardModifiers, QEventPoint.States)
    Use another constructor
    io.qt.gui.QTouchEvent(QEvent.Type, QPointingDevice, Qt.KeyboardModifiers, QEventPoint.States, Collection<? extends QEventPoint>)
    Use another constructor
    io.qt.remoteobjects.QRemoteObjectPendingReply(Class<A>)
    io.qt.remoteobjects.QRemoteObjectPendingReply(Class<A>, QRemoteObjectPendingCall)
    io.qt.sql.QSqlField(String, QVariant.Type)
    Use the constructor using a QMetaType instead
    io.qt.sql.QSqlField(String, QVariant.Type, String)
    Use the constructor using a QMetaType instead
    io.qt.sql.QSqlQuery(QSqlQuery)
    QSqlQuery is not meant to be copied. Use move construction instead.
  • Deprecated Enum Constants
    Enum Constant
    Description
    io.qt.bluetooth.QLowEnergyService.ServiceState.DiscoveringService
    DiscoveringService was renamed to RemoteServiceDiscovering.
    io.qt.bluetooth.QLowEnergyService.ServiceState.DiscoveryRequired
    DiscoveryRequired was renamed to RemoteService.
    io.qt.bluetooth.QLowEnergyService.ServiceState.ServiceDiscovered
    ServiceDiscovered was renamed to RemoteServiceDiscovered.
    io.qt.core.QMetaType.TypeFlag.MovableType
    Use RelocatableType instead.
    io.qt.core.QRegularExpression.MatchOption.AnchoredMatchOption
    Use AnchorAtOffsetMatchOption instead
    io.qt.core.Qt.ApplicationAttribute.AA_DisableHighDpiScaling
    "High-DPI scaling is always enabled. " \ This attribute no longer has any effect.
    io.qt.core.Qt.ApplicationAttribute.AA_EnableHighDpiScaling
    "High-DPI scaling is always enabled. " \ This attribute no longer has any effect.
    io.qt.core.Qt.ApplicationAttribute.AA_UseHighDpiPixmaps
    "High-DPI pixmaps are always enabled. " \ This attribute no longer has any effect.
    io.qt.opengl.QOpenGLTexture.ComparisonFunction.CommpareNotEqual
    Use CompareNotEqual instead.

QtJambi Reference Documentation
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.