Deprecated API
Contents
-
ClassDescriptionUse Qt3DExtras::QMetalRoughMaterialUse QXmlStreamReaderUse QXmlStreamReader
-
FieldDescriptionUse QProcess::errorOccurred(QProcess::ProcessError) insteadUse documentActivated() insteadUse documentsActivated() insteadUse QAbstractSocket::errorOccurred(QAbstractSocket::SocketError) insteadUse QLocalSocket::errorOccurred(QLocalSocket::LocalSocketError) insteadUse QNetworkReply::errorOccurred(QNetworkReply::NetworkError) insteadUse completed insteadUse QGuiApplication::primaryScreenChanged()Use QScreen::geometryChanged()Use QGuiApplication::screenAdded/Removed()Use QScreen::availableGeometryChanged()
-
MethodDescriptioncopy-assignment is unsupported; use move-assignment insteadUse
QBitArray.assign(io.qt.core.QBitArray)
instead.Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()Use QString's toUtf8(), toLatin1() or toLocal8Bit()UseQByteArray.assign(io.qt.core.QByteArray)
instead.UseQByteArray.assign(io.qt.core.QByteArray)
instead.Useinvalid @link
{@link #assign(java.nio.@Nullable Buffer)
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.Use flags() and HiddenFromHelpUse setFlags() with HiddenFromHelpUseQDataStream.setDevice(io.qt.core.QIODevice)
withnull
insteadUse QLocale::dayName or QLocale::standaloneDayNameUse QLocale::dayName or QLocale::standaloneDayNameUse QLocale::monthName or QLocale::standaloneMonthNameUse QLocale::monthName or QLocale::standaloneMonthNameUse QLocale::dayName or QLocale::standaloneDayNameUse QLocale::dayName or QLocale::standaloneDayNameUse QLocale::monthName or QLocale::standaloneMonthNameUse QLocale::monthName or QLocale::standaloneMonthNameUse QLocale or omit the calendarUseQDateTime.setOffsetFromUtc(int)
insteadUseQDateTime.offsetFromUtc()
insteadUseQDir.setPath(java.lang.String)
insteadUseQEvent.assign(io.qt.core.QEvent)
instead.Use either birthTime() or metadataChangeTime()Use CBOR format insteadUse CBOR format insteadUse CBOR format insteadUse CBOR format insteadUse CBOR format insteadUse CBOR format insteadUse qMin(l1.angleTo(l2), l2.angleTo(l1)) insteadCalendar is ignored when parsing timesCalendar is ignored when parsing timesUseQMetaType.qMetaTypeId(Class, QMetaType...)
instead.UseQMetaType.qRegisterMetaType(Class, QMetaType...)
instead.Use findChildren(const QRegularExpression &, ...) instead.Use findChildren(const QRegularExpression &, ...) instead.Use findChildren(const QRegularExpression &, ...) instead.Use findChildren(const QRegularExpression &, ...) instead.Use findChildren(const QRegularExpression &, ...) instead.Use findChildren(const QRegularExpression &, ...) 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 QProcess::execute(const QString &program, const QStringList &arguments) insteadUse QProcess::finished(int, QProcess::ExitStatus) insteadUse QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) insteadUse QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) insteadUse QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) insteadUse QProcess::startDetached(const QString &program, const QStringList &arguments) insteadUseQResource.compressionAlgorithm()
insteadUseQDir.searchPaths(java.lang.String)
insteadUse QSignalMapper::mappedInt(int) insteadUse QSignalMapper::mappedString(const QString&) insteadUse QSignalMapper::mappedObject(QObject *) insteadUse QSignalMapper::mappedWidget(QWidget *) insteaduse QRandomGenerator insteaduse QRandomGenerator insteaduse tryTake(), but note the different deletion rulesUse QElapsedTimer insteadUse QElapsedTimer insteadUse QElapsedTimer insteadAccess easingCurve directlyAccess easingCurve directlyAccess easingCurve directlyUsenew QUrl("qrc:path")
instead.UseQDataStream.readObject(Class, QMetaType...)
instead.UseQDataStream.readObject(Class, QMetaType...)
instead.UseQDataStream.writeObject(Object)
instead.UseQDataStream.writeObject(Object)
instead.This function no longer works, use QDBusContext insteadUseQFontMetrics.horizontalAdvance(char)
insteadUseQFontMetrics.horizontalAdvance(char)
insteadUseQFontMetrics.horizontalAdvance(char)
insteadUseQFontMetrics.horizontalAdvance(char)
insteadUse convertToFormat(QImage::Format_Alpha8)UseQImage.sizeInBytes()
insteadUse QColorSpace insteadUse QColorSpace insteadUse QColorSpace insteadUse QColorSpace insteadUse pageLayout().margins() instead.Use pageLayout().pageSize().id() instead.Use pageLayout().pageSize() instead.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use pageLayout().margins() instead.Use pageLayout().pageSize().id() instead.Use pageLayout().pageSize() instead.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUse drawRoundedRect(..., Qt::RelativeSize) insteadUseQPainter.begin(io.qt.gui.QPaintDevice)
insteadUseQPainter.worldMatrixEnabled()
insteadUseQPainter.resetTransform()
insteadUseQPainter.setWorldMatrixEnabled(boolean)
insteadUse addRoundedRect(..., Qt::RelativeSize) insteadUse addRoundedRect(..., Qt::RelativeSize) insteadUse addRoundedRect(..., Qt::RelativeSize) insteadUse addRoundedRect(..., Qt::RelativeSize) insteadUse r.subtracted() insteadUseQPalette.window()
insteadUseQPalette.windowText()
insteadUse pageLayout().margins() instead.Use pageLayout().pageSize().id() instead.Use pageLayout().pageSize() instead.Use setPageMargins(QMarginsF(l, t, r, b), QPageLayout::Millimeter) insteadUse setPageSize(QPageSize(id)) insteadUse setPageSize(QPageSize(size, QPageSize::Millimeter)) insteadUse begin()/end() insteadUseQTabletEvent.deviceType()
insteaduse globalPosF().x()use globalPosF().y()UseQTextLayout.formats()
insteadUseQTextLayout.clearFormats()
insteadUseQTextLayout.setFormats(java.util.Collection)
insteadUse pos() and ellipseDiameters()Use scenePos() and ellipseDiameters()Use screenPos() and ellipseDiameters()Use setPos() and setEllipseDiameters()Use setScenePos() and setEllipseDiameters()Use setScreenPos() and setEllipseDiameters()UseQTransform.determinant()
insteadUseQWheelEvent.angleDelta()
insteadUseQWheelEvent.globalPosition()
insteadUseQWheelEvent.globalPosition()
insteadUseQWheelEvent.globalPosition()
insteadUseQWheelEvent.globalPosition()
insteadUseQWheelEvent.angleDelta()
insteadUseQWheelEvent.position()
insteadUseQWheelEvent.position()
insteadUseQWheelEvent.position()
insteadUseQWheelEvent.position()
insteadUse NSApp.dockTile.badgeLabelUse NSApp.dockTile.badgeLabelUseQMediaContent.request()
insteadUse QMediaContent::request().url()UseQVideoFrame.assign(io.qt.multimedia.QVideoFrame)
instead.UseQAuthenticator.assign(io.qt.network.QAuthenticator)
instead.use = QHostAddress(string) insteadUseQHttpPart.assign(io.qt.network.QHttpPart)
instead.io.qt.network.QNetworkAccessManager.setNetworkAccessible(QNetworkAccessManager.NetworkAccessibility) QNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedUse the overload not using QRegExpUseQSslConfiguration.caCertificates()
insteadUseQSslConfiguration.ciphers()
insteadUseQSslSocket.sslHandshakeErrors()
insteadUseQSslConfiguration.supportedCiphers()
insteadUseQSslConfiguration.systemCaCertificates()
insteadUse copyCount() instead.Use duplex() instead.Use pageLayout().margins() instead.Use pageLayout().margins() instead.Use copyCount() instead.Use pageLayout().orientation() instead.Use pageLayout().paintRectPixels(resolution()) instead.Use pageLayout().pageSize().id() instead.Use pageLayout().pageSize() instead.Use pageLayout().pageSize().name() instead.Use pageLayout().fullRectPixels(resolution()) instead.pageLayout().pageSize().id()Use pageLayout().pageSize().size() or pageLayout().fullPageSize() instead.Use setDuplex() instead.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.Use setCopyCount() instead.Use setPageOrientation() instead.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use setPageSize(QPageSize) instead.Use QPageSize::id(windowsId) and setPageLayout(QPageSize) instead.Use pageLayout.pageSize().windowsId() instead.UseQFlags.testFlags(QFlags)
instead.UseQFlags.testFlags(QtAbstractFlagEnumerator...)
instead.Use qmlAttachedPropertiesObject(QObject *, QQmlAttachedPropertiesFunc, boolUse qmlAttachedPropertiesObject(QObject *, QQmlAttachedPropertiesFunc, boolUse qmlRegisterExtendedType(uri, versionMajor) insteadUse qmlRegisterInterface(uri, versionMajor) insteadUse the overload with no id parameterUseQRenderCaptureReply.saveImage(java.lang.String)
insteadUseQtUtilities.jambiDeploymentDir()
instead.Use createTextureFromNativeObject() insteadUse createTextureFromNativeObject() insteadUse createTextureFromNativeObject() insteadQSGAbstractRenderer is no longer going to be public in Qt 6.0. QSGEngine-based workflows are expected to migrate to QQuickRenderControl instead.QSGEngine is going to be removed in Qt 6.0. Use QQuickRenderControl instead.Use the 3-args version of notification() instead.UseQTest.QFETCH(String, Class, io.qt.core.QMetaType...)
instead.Use downloadDirectory() and downloadFileName() insteadUse setDownloadDirectory() and setDownloadFileName() insteadUseQWebSocketServer.setNativeDescriptor(long)
insteadUseQWebSocketServer.nativeDescriptor()
insteadUseQApplication.navigationMode()
insteadUse QButtonGroup::idClicked(int) insteadUse QButtonGroup::idPressed(int) insteadUse QButtonGroup::idReleased(int) insteadUse QButtonGroup::idToggled(int, bool) insteadUse textActivated() insteadUse currentIndexChanged(int) instead, and get the text using itemText(index)Use textHighlighted() insteadUseQGuiApplication.screens()
insteadUseQGuiApplication.screens()
insteadUseQGuiApplication.screenAt(io.qt.core.QPoint)
insteadUseQGuiApplication.primaryScreen()
insteadUseQGuiApplication.screens()
insteadUse QScreen::virtualSiblings() of primary screenUse QScreen::virtualSiblings() of primary screenUseQGuiApplication.screens()
insteadUseQGuiApplication.primaryScreen()
insteadUse QScreenUseQGuiApplication.screens()
insteadUseQGuiApplication.screens()
insteadUseQGuiApplication.screens()
insteadUseQGuiApplication.screenAt(io.qt.core.QPoint)
insteadUseQGuiApplication.screenAt(io.qt.core.QPoint)
insteadUse textChanged(QString) insteadUse !testOption(DontConfirmOverwrite) insteadUse !testOption(DontConfirmOverwrite) insteadUse !testOption(HideNameFilterDetails) insteadUse !testOption(DontResolveSymlinks) insteadUse !testOption(HideNameFilterDetails) insteadUse !testOption(DontResolveSymlinks) insteadUse setOption(DontConfirmOverwrite, !enabled) insteadUse setOption(HideNameFilterDetails, !enabled) insteadUse setOption(DontResolveSymlinks, !enabled) insteadUse setStep(0) insteadUseQGraphicsView.resetTransform()
insteadUse textChanged(QString) insteadUseQSplitter.restoreState(io.qt.core.QByteArray)
insteadUseQSplitter.saveState()
insteadUseQStyleOption.assign(io.qt.widgets.QStyleOption)
instead.Use QTextBrowser::highlighted(QUrl) insteadUseQTreeWidgetItem.isFirstColumnSpanned()
insteadUseQTreeWidgetItem.setFirstColumnSpanned(boolean)
insteadUseQWidget.contentsMargins()
insteadUseQWidget.isEnabled()
insteadUseQWizard.visitedIds()
insteadUse other overloads insteadUse other overloads insteadUseQXmlQuery.assign(io.qt.xmlpatterns.QXmlQuery)
instead.
-
ConstructorDescriptioncopy-construction is unsupported; use move-construction insteadUse
QDate.startOfDay(io.qt.core.Qt.TimeSpec, int)
insteadUse the other QTabletEvent constructorUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedUse the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and invertedQNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedio.qt.network.QNetworkProxyQuery(QNetworkConfiguration, short, String, QNetworkProxyQuery.QueryType) QNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedQNetworkConfiguration support in QNetworkProxy is deprecatedUse QFileSystemModelUse QFileSystemModelUse QFileSystemModelUse QFileSystemModelUse the constructor taking a QScreen *Use the constructor taking a QScreen *Use the constructor taking a QScreen *Use the constructor taking a QScreen *
-
Enum ConstantDescriptionObsolete name, use TokelauCountryObsolete name, use TuvaluCountryNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageObsolete name, use RomanianNo locale data for this languageNo locale data for this languageNo locale data for this languageObsolete name, use NorwegianBokmalNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageObsolete name, use SerbianNo locale data for this languageNo locale data for this languageObsolete name, use FilipinoNo locale data for this languageNo locale data for this languageNo locale data for this languageNo locale data for this languageObsolete name, use AkanNo locale data for this languageThis option does not have any effect since Qt 5.12This option does not have any effect since Qt 5.12Use QLocaleUse QLocaleUse QLocaleUse QLocaleUse QLocaleUse QLocaleUse QLocaleMatchRegExp is deprecated. Use MatchRegularExpression insteadMidButton is deprecated. Use MiddleButton insteadWA_ForceAcceptDrops is deprecated. Use WA_DropSiteRegistered insteadUse Antialiasing insteadDefault pen is non-cosmetic nowUse QPalette::Window insteadUse QPalette::WindowText insteadUse RedirectPolicyAttributeUse Http2AllowedAttributeUse Http2WasUsedAttributeUse AdjustToContents or AdjustToContentsOnFirstShowUse setOption(ShowDirsOnly, true) insteadUse ItemTransformChange insteadThis flag is unused