Deprecated API
Contents
-
FieldDescriptionUse suspending() instead.Handle QEvent::ApplicationFontChange insteadHandle QEvent::ApplicationPaletteChange insteadUse documentActivated() insteadUse documentsActivated() insteadThe native name of this enum entry is misleading. Use
QJSEngine.ObjectOwnership.JavaOwnership
instead.Requesting host quota is no longer supported.Use errorOccurred instead
-
MethodDescriptionUse
QXYSeries.points()
insteadUseQBitArray.assign(io.qt.core.QBitArray)
instead.UseQByteArray.assign(io.qt.core.QByteArray)
instead.UseQByteArray.assign(io.qt.core.QByteArray)
instead.UseQByteArray.assign(java.nio.Buffer)
instead.UseQByteArray.assign(String)
instead.UseQCborArray.assign(io.qt.core.QCborArray)
instead.UseQCborMap.assign(io.qt.core.QCborMap)
instead.UseQCborValue.assign(io.qt.core.QCborValue)
instead.UseQChildEvent.assign(io.qt.core.QChildEvent)
instead.Use the QByteArrayView overload insteadPass QTimeZone insteadPass QTimeZone insteadPass QTimeZone insteadPass QTimeZone insteadPass QTimeZone instead of time-spec, offsetPass QTimeZone instead of time-spec, offsetPass QTimeZone instead of time-spec, offsetPass QTimeZone instead of time-spec, offsetUseQDateTime.setTimeZone(io.qt.core.QTimeZone)
insteadUseQDateTime.setTimeZone(io.qt.core.QTimeZone)
insteadUseQDateTime.toTimeZone(io.qt.core.QTimeZone)
insteadUseQEvent.assign(io.qt.core.QEvent)
instead.Use isSuspending() or isSuspended() instead.Use suspend() instead.Use setSuspended() instead.Use toggleSuspended() instead.Use isSuspending() or isSuspended() instead.Use setSuspended() instead.Use toggleSuspended() instead.Use isSuspending() or isSuspended() instead.Use suspended() instead.Use setSuspended() instead.Use toggleSuspended() instead.UseQLocale.codeToTerritory(java.lang.String)
insteadQuery territory() on each entry from matchingLocales() insteadUseQLocale.territory()
insteadUse territoryToCode(Territory) insteadUse territoryToString(Territory) insteadUseQLocale.nativeTerritoryName()
insteadUseQMetaType.qMetaTypeId(Class, QMetaType...)
instead.UseQMetaType.qRegisterMetaType(Class, QMetaType...)
instead.UseQPluginLoader.qRegisterPluginInterface(Class)
instead.UseQPluginLoader.qRegisterStaticPluginFunction(QObject)
instead.UseQPluginLoader.qRegisterStaticPluginFunction(Class)
instead.io.qt.core.QPluginLoader.registerStaticPluginFunction(Class<? extends QObject>, Map<String, Object>) Use globalMatchView instead.Use globalMatchView instead.Use globalMatchView instead.Use globalMatchView instead.Use globalMatchView instead.Use matchView instead.Use matchView instead.Use matchView instead.Use matchView instead.Use matchView instead.Use size() or length() instead.Use QHashSeed insteadUse QHashSeed insteadUseQTimerEvent.assign(io.qt.core.QTimerEvent)
instead.UseQTimeZone.territory()
insteadUsenew QUrl("qrc:path")
instead.UseQDataStream.readObject(Class, QMetaType...)
instead.UseQDataStream.readObject(Class, QMetaType...)
instead.UseQDataStream.writeObject(Object)
instead.UseQDataStream.writeObject(Object)
instead.Use typeId() or metaType().Use associatedObjects() with qobject_cast() insteadUse associatedObjects() with qobject_cast() insteadUse parent() with qobject_cast() insteadUseQActionEvent.assign(io.qt.gui.QActionEvent)
instead.UseQCloseEvent.assign(io.qt.gui.QCloseEvent)
instead.Use isValidColorName() instead.Use fromString() instead.Use the overload without argument instead.Use the overload without argument instead.UseQDragEnterEvent.assign(io.qt.gui.QDragEnterEvent)
instead.UseQDragLeaveEvent.assign(io.qt.gui.QDragLeaveEvent)
instead.UseQDragMoveEvent.assign(io.qt.gui.QDragMoveEvent)
instead.UseQDropEvent.modifiers()
insteadUseQDropEvent.buttons()
insteadUse position().toPoint()UseQDropEvent.position()
insteadUseQDropEvent.assign(io.qt.gui.QDropEvent)
instead.UseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.position()
insteadUseQSinglePointEvent.position()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQEnterEvent.assign(io.qt.gui.QEnterEvent)
instead.UseQSinglePointEvent.scenePosition()
insteadUseQSinglePointEvent.position()
insteadUseQSinglePointEvent.position()
insteadUseQEventPoint.assign(io.qt.gui.QEventPoint)
instead.Handle QPaintEvent insteadUseQExposeEvent.assign(io.qt.gui.QExposeEvent)
instead.UseQFileOpenEvent.assign(io.qt.gui.QFileOpenEvent)
instead.UseQFocusEvent.assign(io.qt.gui.QFocusEvent)
instead.UseQFont.weight()
insteadUseQFont.setWeight(io.qt.gui.QFont.Weight)
insteadUseQFontInfo.weight()
insteadUseQHelpEvent.assign(io.qt.gui.QHelpEvent)
instead.UseQHideEvent.assign(io.qt.gui.QHideEvent)
instead.UseQSinglePointEvent.position()
insteadUseQSinglePointEvent.position()
insteadUseQHoverEvent.assign(io.qt.gui.QHoverEvent)
instead.Use actualSize(size) insteadUse actualSize(size) insteadUse actualSize(size) insteadUse pixmap(size, devicePixelRatio) insteadUse pixmap(size, devicePixelRatio) insteadUse pixmap(size, devicePixelRatio) insteadUseQIconDragEvent.assign(io.qt.gui.QIconDragEvent)
instead.UseQInputEvent.assign(io.qt.gui.QInputEvent)
instead.UseQKeyEvent.assign(io.qt.gui.QKeyEvent)
instead.UseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.position()
insteadUseQSinglePointEvent.globalPosition()
insteadUseQMouseEvent.assign(io.qt.gui.QMouseEvent)
instead.UseQSinglePointEvent.scenePosition()
insteadUseQSinglePointEvent.position()
insteadUseQSinglePointEvent.position()
insteadUseQMoveEvent.assign(io.qt.gui.QMoveEvent)
instead.Use globalPosition().toPoint()UseQSinglePointEvent.position()
insteadUse position().toPoint()UseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.scenePosition()
insteadUseQPaintEvent.assign(io.qt.gui.QPaintEvent)
instead.UseQPointerEvent.assign(io.qt.gui.QPointerEvent)
instead.UseQResizeEvent.assign(io.qt.gui.QResizeEvent)
instead.UseQScrollEvent.assign(io.qt.gui.QScrollEvent)
instead.Use parent() and qobject_cast insteadUseQShortcutEvent.assign(io.qt.gui.QShortcutEvent)
instead.UseQStatusTipEvent.assign(io.qt.gui.QStatusTipEvent)
instead.UseQStyleHints.keyboardAutoRepeatRateF()
insteadUseQStyleHints.keyboardAutoRepeatRateF()
insteadUse setColorSpace(QColorSpace) instead.UseQSinglePointEvent.globalPosition()
insteadUseQSinglePointEvent.globalPosition()
insteadUse globalPosition().x()Use globalPosition().y()use globalPosition().x()use globalPosition().y()UseQSinglePointEvent.position()
insteadUseQSinglePointEvent.position()
insteadUseQTabletEvent.assign(io.qt.gui.QTabletEvent)
instead.use pointingDevice().uniqueId()Use position().x()Use position().y()UseQTextCharFormat.fontFamilies()
insteadPass a quality value, the default is 100UseQTouchEvent.assign(io.qt.gui.QTouchEvent)
instead.UseQPointerEvent.points()
insteadExtend the QVector3D to a QVector4D with 1.0 as the w coordinate before multiplyingUseQWheelEvent.assign(io.qt.gui.QWheelEvent)
instead.UseQVideoFrame.assign(io.qt.multimedia.QVideoFrame)
instead.UseQVideoFrameFormat.colorSpace()
insteadUseQAuthenticator.assign(io.qt.network.QAuthenticator)
instead.UseQHttpPart.assign(io.qt.network.QHttpPart)
instead.UseQFlags.testFlags(QtAbstractFlagEnumerator...)
instead.UseQFlags.testFlags(QFlags)
instead.UseQJSPrimitiveValue.plus(io.qt.qml.QJSPrimitiveValue)
instead.UseQJSPrimitiveValue.div(io.qt.qml.QJSPrimitiveValue)
instead.UseQJSPrimitiveValue.rem(io.qt.qml.QJSPrimitiveValue)
instead.UseQJSPrimitiveValue.times(io.qt.qml.QJSPrimitiveValue)
instead.UseQJSPrimitiveValue.minus(io.qt.qml.QJSPrimitiveValue)
instead.Import the module from QML insteadProvide a qmldir file to remove the need for calling baseUrlUseQtUtilities.jambiDeploymentDir()
instead.Use qWaitForPolish(QQuickItem *) insteadUse qWaitForPolish(QQuickItem *) insteadUseQSqlField.setMetaType(io.qt.core.QMetaType)
insteadUseQSqlField.metaType()
insteadQSqlQuery is not meant to be copied. Use move assignment instead.QSqlQuery is not meant to be copied. Pass it by move instead.use an overload that takes function_ref as parameters, or an overload that takes only failure message, if you do not need to stringify the valuesUseQTest.QFETCH(String, Class, io.qt.core.QMetaType...)
instead.Use qWarning() insteadUse qWarning() insteadUse qWarning() insteadDon't use QVERIFY_EXCEPTION_THROWN(expr, type) anymore, use QVERIFY_THROWS_EXCEPTION(type, expr...) insteadUseQWebSocketServer.socketDescriptor()
insteadUseQWebSocketServer.setSocketDescriptor(long)
insteadUse the QFontMetricsF constructor instead.Use QWidget::activateWindow() instead.Use the overload taking Qt::AlignmentUseQStyleOption.assign(io.qt.widgets.QStyleOption)
instead.Use the overload taking Qt::AlignmentUse the overload taking Qt::AlignmentUseQWidget.isWindow()
insteadUse the overload taking ParseOptions instead.Use the overload taking ParseOptions instead.Use the overload taking ParseOptions instead.Use the overload taking ParseOptions instead.
-
ConstructorDescriptionPass QTimeZone insteadPass QTimeZone insteadUse the constructor taking a QMetaType instead.Use fromPixmap instead.Use the other constructorCall the static functions insteadUse the other constructorUse the other constructorUse the other constructorUse another constructorUse another constructorUse the other constructorUse another constructorUse another constructorDrop the QQmlEngine* argumentDrop the QQmlEngine* argumentUse the constructor using a QMetaType insteadUse the constructor using a QMetaType insteadQSqlQuery is not meant to be copied. Use move construction instead.Requesting host quota is no longer supported.
-
Enum ConstantDescriptionDiscoveringService was renamed to RemoteServiceDiscovering.DiscoveryRequired was renamed to RemoteService.ServiceDiscovered was renamed to RemoteServiceDiscovered.Not supported anymore. Use PerformanceCounter instead.Use RelocatableType instead.Use AnchorAtOffsetMatchOption instead"High-DPI scaling is always enabled. " This attribute no longer has any effect."High-DPI scaling is always enabled. " This attribute no longer has any effect."High-DPI pixmaps are always enabled. " This attribute no longer has any effect.Use DtlsV1_2OrLater instead.Use DtlsV1_2OrLater instead.Use TlsV1_2OrLater instead.Use TlsV1_2OrLater instead.Use TlsV1_2OrLater instead.Use TlsV1_2OrLater instead.Use CompareNotEqual instead."Qt 6 does not have custom shader compilation support. If the intention is to just disable batching, use NoBatching instead."