過時類

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