过时类

Qt modules that are deprecated

The following Qt modules are now obsolete. They are provided to keep old source code working, but they are no longer maintained, and can be removed in a future major Qt release. We advise against using these modules in new code. Each obsolete module comes with documentation that helps with porting existing code to new and actively maintained alternatives.

Obsolete module New module Migration guide
Qt 3D Qt Quick 3D Porting Qt 3D to Qt Quick 3D: A Migration Guide
Qt Charts Qt Graphs Qt Graphs Migration from Qt Charts
Qt Data Visualization Qt Graphs Qt Graphs 迁移自 Qt DataVisualization

被弃用的 C++ 类

下列 Qt C++ 类现已过时。过时类不再维护。提供它们是为使旧源代码能继续工作,但在未来发行中会移除它们。强烈建议不要在新代码中使用这些类。

D
QDiffuseMapMaterial ( Qt3DExtras )
QDiffuseSpecularMapMaterial ( Qt3DExtras )
G
QGeoServiceProviderFactory
QGraphicsItemAnimation
H
QHelpSearchQuery
N
QNormalDiffuseMapAlphaMaterial ( Qt3DExtras )
QNormalDiffuseMapMaterial ( Qt3DExtras )
QNormalDiffuseSpecularMapMaterial ( Qt3DExtras )
P
QPhongAlphaMaterial ( Qt3DExtras )
QPhongMaterial ( Qt3DExtras )
W
QWebEngineQuotaRequest

包含弃用成员的 C++ 类

下列 Qt C++ 类包含一个或多个现已过时的成员。过时成员不再维护。提供它们是为使旧源代码能继续工作,但在未来发行中会移除它们。强烈建议不要在新代码中使用这些过时成员。点击类以查看其弃用成员。

A
QAbstractEventDispatcher
QAbstractItemView
QAction
QAnyStringView
QApplication
QAxFactory
B
Binding ( QQmlSA )
QBasicTimer
QBitmap
QByteArray
QByteArrayView
C
QCamera ( Qt3DRender )
QChart
QCheckBox
QColor
QContextMenuEvent
QCryptographicHash
QCursor
D
QDate
QDateTime
QDateTimeEdit
QDBusConnection
QDBusConnectionInterface
QDesignerFormWindowManagerInterface
QDomDocument
QDropEvent
E
QEnterEvent
QEventPoint
QExposeEvent
F
QFileOpenEvent
QFont
QFontDatabase
QFontInfo
QForwardRenderer ( Qt3DExtras )
QFuture
QFutureWatcher
G
QGlobalStatic
QGraphicsItem
QGraphicsScene
QGraphicsSvgItem
QGraphicsView
QGuiApplication
H
QHash
QHelpEngineCore
QHelpIndexWidget
QHelpSearchEngine
QHelpSearchQueryWidget
QHoverEvent
I
QIcon
J
QJniEnvironment
QJSValue
K
QKeyCombination
L
QLabel
QLibraryInfo
QLineF
QList
QListWidgetItem
QLocale
M
QMatrix4x4
QMediaRecorder
QMenu
QMessageBox
QMetaMethod
QMetaObject
QMetaProperty
QMetaType
QMouseEvent
QMultiMap
N
QNativeGestureEvent
QNetworkAccessManager
QNetworkInformation
O
QOAuth2AuthorizationCodeFlow
QObject
P
QPalette
QPixmapCache
QProcess
Q
QQmlEngine
QQmlFileSelector
QQmlListProperty
QQmlListReference
QQuickItem
QQuickPaintedItem
QQuickWindow
R
QRegion
QRegularExpression
QRenderCapture ( Qt3DRender )
S
QScopedArrayPointer
QScopedPointer
QShortcut
QShortcutEvent
QSocketNotifier
QSqlDatabase
QSqlField
QSqlQuery
QSqlQueryModel
QStateMachine
QString
QStringView
QStyle
QStyleHints
QSurfaceFormat
T
QTabletEvent
QTableWidgetItem
QTextCharFormat
QTextCodec
QTimer
QTimeZone
QTouchEvent
QTreeWidgetItem
U
QUtf8StringView
V
QVariant
QVarLengthArray
QVideoFrame
QVideoFrameFormat
QVirtualKeyboardInputContext
W
QWebEnginePage
QWebSocket
QWebSocketServer
QWheelEvent
QWidget
X
QXmlReader
QXYSeries