Qt 6.11 中的新类和函数
本页面包含 Qt 6.11 中引入的所有新类和函数的完整列表。
- 新命名空间
- 新类
- 新增成员函数
- 命名空间中的新函数
- 新增宏
- 新的枚举类型
- 新的枚举值
- 新的类型别名
- 新属性
- 新变量
- 新的 QML 类型
- 新的 QML 枚举类型
- 新的 QML 属性
- 新的 QML 信号
- 新的 QML 方法
新的命名空间
(technology preview) namespace | QtTaskTree |
新类
- A
- Axes (QQuaternion)
- Axis (QQuaternion)
- B
- QBarrier (QtTaskTree)
- C
- ColumnIterator (QRangeModelAdapter)
- ConstColumnIterator (QRangeModelAdapter)
- ConstIterator: QtCore (QMetaAssociation::Iterable)
- ConstIterator: QtCore (QMetaSequence::Iterable)
- ConstPointer (QVariant)
- ConstReference (QVariant)
- ConstRowIterator (QRangeModelAdapter)
- ConstRowReference (QRangeModelAdapter)
- QCanvasBoxGradient
- QCanvasBoxShadow
- QCanvasBrush
- QCanvasConicalGradient
- QCanvasCustomBrush
- QCanvasGradient
- QCanvasGradientStop
- QCanvasGridPattern
- QCanvasImage
- QCanvasImagePattern
- QCanvasLinearGradient
- QCanvasOffscreenCanvas
- QCanvasPainter
- QCanvasPainterFactory
- QCanvasPainterItem
- QCanvasPainterItemRenderer
- QCanvasPainterWidget
- QCanvasPath
- QCanvasRadialGradient
- QCanvasRhiPaintDriver
- QCocoaScreen (QNativeInterface)
- QCustomSeries
- QCustomTask (QtTaskTree)
- E
- Else (QtTaskTree)
- ElseIf (QtTaskTree)
- EulerAngles (QQuaternion)
- ExecutableItem (QtTaskTree)
- ExecutionMode (QtTaskTree)
- F
- FinalizeResultChar (QStringConverter)
- For (QtTaskTree)
- Forever (QtTaskTree)
- ForeverIterator (QtTaskTree)
- G
- Group (QtTaskTree)
- GroupItem (QtTaskTree)
- QGrpcCancelInterceptor
- QGrpcFinishedInterceptor
- QGrpcInitialMetadataInterceptor
- QGrpcInterceptionContext
- QGrpcInterceptorChain
- QGrpcMessageReceivedInterceptor
- QGrpcStartInterceptor
- QGrpcTrailingMetadataInterceptor
- QGrpcWriteMessageInterceptor
- QGrpcWritesDoneInterceptor
- I
- If (QtTaskTree)
- ItemAccess (QRangeModel)
- Iterable: QtCore (QMetaSequence)
- Iterable: QtCore (QMetaAssociation)
- Iterator: QtTaskTree (QtTaskTree)
- Iterator: QtCore (QMetaAssociation::Iterable)
- Iterator: QtCore (QMetaSequence::Iterable)
- P
- ParallelLimit (QtTaskTree)
- Pointer (QVariant)
- QParallelTaskTreeRunner (QtTaskTree)
- QProcessTaskDeleter (QtTaskTree)
- R
- QRangeModelAdapter
- Reference (QVariant)
- RepeatIterator (QtTaskTree)
- RowIterator (QRangeModelAdapter)
- RowReference (QRangeModelAdapter)
- RowReferenceBase (QRangeModelAdapter)
- RpcDescriptor (QtGrpc)
- S
- QSequentialTaskTreeRunner (QtTaskTree)
- QSingleTaskTreeRunner (QtTaskTree)
- QSSGRenderTextureProviderExtension
- QStartedBarrier (QtTaskTree)
- QStyleOptionMenuItemV2
- QSyncTask (QtTaskTree)
- Storage (QtTaskTree)
新成员职能
QAudioSink 类:
(since 6.11) void | start(Callback &&cb) |
QAudioSource 类:
(since 6.11) void | start(Callback &&cb) |
(since 6.11) void | clear() |
QByteArray 类:
(since 6.11) QByteArray | fromPercentEncoding(QByteArray &&input, char percent = '%') |
(since 6.11) QByteArray | percentDecoded(char percent = '%') && |
QDate 类:
(since 6.11) QDate & | operator++(QDate &date) |
(since 6.11) QDate | operator++(QDate &date, int) |
(since 6.11) QDate & | operator--(QDate &date) |
(since 6.11) QDate | operator--(QDate &date, int) |
(since 6.11) std::optional<bool> | filterServerMetadata() const |
(since 6.11) bool | operator!=(const QGrpcCallOptions &lhs, const QGrpcCallOptions &rhs) |
(since 6.11) bool | operator==(const QGrpcCallOptions &lhs, const QGrpcCallOptions &rhs) |
(since 6.11) QGrpcCallOptions & | setFilterServerMetadata(bool value) |
(since 6.11) std::optional<bool> | filterServerMetadata() const |
(since 6.11) bool | operator!=(const QGrpcChannelOptions &lhs, const QGrpcChannelOptions &rhs) |
(since 6.11) bool | operator==(const QGrpcChannelOptions &lhs, const QGrpcChannelOptions &rhs) |
(since 6.11) QGrpcChannelOptions & | setFilterServerMetadata(bool value) |
(since 6.11) void | serverInitialMetadataReceived(const QMultiHash<QByteArray, QByteArray> &metadata) |
(since 6.11) QtGrpc::RpcDescriptor | descriptor() const |
(since 6.11) quint64 | operationId() const |
(since 6.11) void | serverInitialMetadataReceived(const QMultiHash<QByteArray, QByteArray> &metadata) |
QHash 类:
(since 6.11) QHash<Key, T>::iterator | insert(Key &&key, T &&value) |
(since 6.11) QHash<Key, T>::iterator | insert(Key &&key, const T &value) |
(since 6.11) QHash<Key, T>::iterator | insert(const Key &key, T &&value) |
(since 6.11) qint64 | maximumBodySize() const |
(since 6.11) qint64 | maximumHeaderFieldCount() const |
(since 6.11) qint64 | maximumHeaderFieldSize() const |
(since 6.11) qint64 | maximumTotalHeaderSize() const |
(since 6.11) qint64 | maximumUrlSize() const |
(since 6.11) void | setMaximumBodySize(qint64 maxSize) |
(since 6.11) void | setMaximumHeaderFieldCount(qint64 maxSize) |
(since 6.11) void | setMaximumHeaderFieldSize(qint64 maxSize) |
(since 6.11) void | setMaximumTotalHeaderSize(qint64 maxSize) |
(since 6.11) void | setMaximumUrlSize(qint64 maxSize) |
(since 6.11) bool | isResponseCanceled() const |
(since 6.11) bool | isOverride() const |
(since 6.11) bool | isVirtual() const |
QMultiHash 类:
(since 6.11) QMultiHash<Key, T>::iterator | insert(Key &&key, T &&value) |
(since 6.11) QMultiHash<Key, T>::iterator | insert(Key &&key, const T &value) |
(since 6.11) QMultiHash<Key, T>::iterator | insert(const Key &key, T &&value) |
(since 6.11) void | setTcpKeepAliveIdleTimeBeforeProbes(std::chrono::seconds idle) |
(since 6.11) void | setTcpKeepAliveIntervalBetweenProbes(std::chrono::seconds interval) |
(since 6.11) void | setTcpKeepAliveProbeCount(int probes) |
(since 6.11) std::chrono::seconds | tcpKeepAliveIdleTimeBeforeProbes() const |
(since 6.11) std::chrono::seconds | tcpKeepAliveIntervalBetweenProbes() const |
(since 6.11) int | tcpKeepAliveProbeCount() const |
QObject 类:
(since 6.11) bool | isQmlExposed() const |
QPainter 类:
(since 6.11) QPointF | brushOriginF() const |
(since 6.11) void | setBrush(QBrush &&brush) |
(since 6.11) void | setPen(QPen &&pen) |
(since 6.11) To | qprotobufmessage_cast(QProtobufMessage *from) |
(since 6.11) To | qprotobufmessage_cast(const QProtobufMessage *from) |
QQmlContext 类:
(since 6.11) QList<QQmlContext *> | childContexts() const |
(since 6.11) QObject * | findObjectRecursively(const QString &id) const |
(since 6.11) QList<QObject *> | findObjectsRecursively(const QString &id) const |
QQuaternion 类:
(since 6.11) QQuaternion::EulerAngles<float> | eulerAngles() const |
(since 6.11) QQuaternion | fromAxes(QQuaternion::Axes axes) |
(since 6.11) QQuaternion | fromEulerAngles(QQuaternion::EulerAngles<float> angles) |
(since 6.11) QQuaternion::Axes | toAxes() const |
Axis 类:
(since 6.11) bool | qFuzzyIsNull(QQuaternion::Axis axis) |
QQuickWindow 类:
(since 6.11) void | devicePixelRatioChanged() |
QRawFont 类:
(since 6.11) quint32 | glyphCount() const |
(since 6.11) QString | glyphName(quint32 glyphIndex) const |
(since 6.11) bool | hasDepthClamp() const |
(since 6.11) void | setDepthClamp(bool enable) |
QSaveFile 类:
(since 6.11) std::filesystem::path | filesystemFileName() const |
(since 6.11) void | setFileName(const std::filesystem::path &name) |
QScopeGuard 类:
(since 6.11) void | commit() |
QStack 类:
(since 6.11) void | push(T &&t) |
(since 6.11) QStringDecoder::FinalizeResult | finalize() |
(since 6.11) QStringDecoder::FinalizeResultQChar | finalize(QChar *out, qsizetype maxlen) |
(since 6.11) QStringDecoder::FinalizeResult | finalize(char16_t *out, qsizetype maxlen) |
(since 6.11) QStringEncoder::FinalizeResult | finalize() |
(since 6.11) QStringEncoder::FinalizeResult | finalize(char *out, qsizetype maxlen) |
(since 6.11) virtual void | initPainter(QPainter *painter) const override |
(since 6.11) bool | renameOverwrite(const QString &newName) |
(since 6.11) bool | renameOverwrite(const std::filesystem::path &newName) |
(since 6.11) QTextBoundaryFinder & | operator=(QTextBoundaryFinder &&other) |
(since 6.11) void | swap(QTextBoundaryFinder &other) |
(since 6.11) QMap<QFont::Tag, quint32> | fontFeatures() const |
(since 6.11) QMap<QFont::Tag, float> | fontVariableAxes() const |
(since 6.11) void | setFontFeatures(const QMap<QFont::Tag, quint32> &fontFeatures) |
(since 6.11) void | setFontVariableAxes(const QMap<QFont::Tag, float> &fontVariableAxes) |
(since 6.11) void | sslErrorsOccurred(QSslSocket *socket, const QList<QSslError> &errors) |
qfloat16 类:
命名空间中的新函数
(since 6.11) const char * | currentGlobalDataTag() |
新宏
(since 6.11) | QT_NO_SINGLE_ARGUMENT_QHASH_OVERLOAD |
(since 6.11) void | Q_PRESUME(bool expr) |
新的枚举类型
(since 6.11) 枚举类 | InterceptorCapability { Start, InitialMetadata, MessageReceived, WriteMessage, WritesDone, …, Cancel } |
(since 6.11) 枚举类 | LabelPosition { Center, OnValue } |
(since 6.11) 枚举类 | Continuation { 继续, 放弃 } |
(since 6.11) 枚举类 | LineStyle { 直行, 向左,向右,向中 } |
(since 6.11) 枚举类 | StrokeStyle { 实线, 虚线 } |
(since 6.11) 枚举类 | AutoConnectPolicy { 无, 完整, 读取时 } |
(since 6.11) 枚举类 | RpcType { 单向调用, 服务器流, 客户端流, 双向流 } |
新的枚举值
| enum value | Attribute::Orientation |
| enum value | Event::RoleChanged |
| enum value | Language::Ladin |
| enum value | Language::Shan |
| enum value | PersistentCookiesPolicy::OnlyPersistentCookies |
| enum value | PersistentCookiesPolicy::OnlyPersistentCookies |
| enum value | Role::Switch |
| enum value | ScopeType::BindingFunctionScope |
| enum value | ScopeType::SignalHandlerFunctionScope |
| enum value | Script::Script_BeriaErfe |
| enum value | Script::Script_Sidetic |
| enum value | Script::Script_TaiYo |
| enum value | Script::Script_TolongSiki |
| enum value | UnicodeVersion::Unicode_17_0 |
| enum value | WebAttribute::TrimAccessibilityIdentifiers |
新的类型别名
(since 6.11) flags | InterceptorCapabilities |
新属性
|
|
新变量
(since 6.11) const QOperatingSystemVersionBase | Windows11_25H2 |
(since 6.11) std::atomic<std::chrono::milliseconds> | defaultTryTimeout |
新的 QML 类型
- I
- ItemSpy
新的 QML 枚举类型
(since 6.11) | SamplerHint |
新的 QML 属性
QML 类型AreaSeries :
(since 6.11) | gradient : ShapeGradient |
(since 6.11) | selectedGradient : ShapeGradient |
QML 类型AudioEngine :
(since 6.11) | distanceScale : real |
QML 类型BarCategoryAxis :
(since 6.11) | labelPosition : enumeration |
QML 类型Custom3DItem :
(since 6.11) | rotationAbsolute : bool |
QML 类型DateTimeAxis :
(since 6.11) | pan : real |
(since 6.11) | timeZone : QTimeZone |
(since 6.11) | visualMax : real |
(since 6.11) | visualMin : real |
(since 6.11) | zoom : real |
QML 类型DialogButtonBox :
(since 6.11) | defaultButton : AbstractButton |
(since 6.11) | defaultStandardButton : enumeration |
QML 类型ExtendedSceneEnvironment :
(since 6.11) | ssgiBufferSizeFactor : real |
(since 6.11) | ssgiEnabled : bool |
(since 6.11) | ssgiHitThickness : real |
(since 6.11) | ssgiIndirectLightBoost : real |
(since 6.11) | ssgiIndirectLightEnabled : bool |
(since 6.11) | ssgiSampleCount : int |
(since 6.11) | ssgiSampleRadius : real |
(since 6.11) | ssgiSimulatedBounceEnabled : bool |
(since 6.11) | ssgiSimulatedBounceFactor : real |
(since 6.11) | ssgiSliceCount : int |
(since 6.11) | ssrEnabled : bool |
QML 类型GraphsItem3D :
(since 6.11) | cutoffMargin : real |
QML 类型KeyboardStyle :
(since 6.11) | keyboardDesignMaximumHeight : real |
QML 类型LineSeries :
(since 6.11) | dashOffset : real |
(since 6.11) | dashPattern : list<real> |
(since 6.11) | joinStyle : Qt::PenJoinStyle |
(since 6.11) | lineStyle : QLineSeries::LineStyle |
(since 6.11) | strokeStyle : enumeration |
QML 类型Model :
(since 6.11) | motionVectorEnabled : bool |
(since 6.11) | motionVectorScale : real |
QML 类型RectangleShape :
(since 6.11) | drawBottom : bool |
(since 6.11) | drawLeft : bool |
(since 6.11) | drawRight : bool |
(since 6.11) | drawTop : bool |
QML 类型RectangularShadow :
(since 6.11) | bottomLeftRadius : real |
(since 6.11) | bottomRightRadius : real |
(since 6.11) | topLeftRadius : real |
(since 6.11) | topRightRadius : real |
QML 类型Rotation :
(since 6.11) | distanceToPlane : real |
QML 类型SceneEnvironment :
(since 6.11) | oitMethod : enumeration |
(since 6.11) | temporalAAMode : enumeration |
QML 类型ShapePath :
(since 6.11) | cosmeticStroke : bool |
QML 类型SplineSeries :
(since 6.11) | optimized : bool |
QML 类型TextSelection :
(since 6.11) | document : TextDocument |
(since 6.11) | selectionEnd : int |
(since 6.11) | selectionStart : int |
QML 类型TextureProviderExtension :
(since 6.11) | samplerHint : SamplerHint |
QML 类型ValueAxis :
QML 类型VectorImage :
(since 6.11) | asynchronousShapes : bool |
QML 类型VirtualKeyboardSettings :
(since 6.11) | arrowKeyNavigationEnabled : bool |
QML 类型sslConfiguration :
(since 6.11) | sslOptionFlags : QSsl::SslOptions |
QML 类型sslDtlsConfiguration :
(since 6.11) | sslOptionFlags : QSsl::SslOptions |
新的 QML 信号
(since 6.11) | dashOffsetChanged(qreal newDashOffset) |
(since 6.11) | dashPatternChanged(QList<qreal> newDashPattern) |
(since 6.11) | gradientChanged() |
(since 6.11) | joinStyleChanged(Qt::PenJoinStyle newJoinStyle) |
(since 6.11) | lineStyleChanged(QLineSeries::LineStyle newLineStyle) |
(since 6.11) | optimizedChanged() |
(since 6.11) | selectedGradientChanged() |
(since 6.11) | strokeStyleChanged(QLineSeries::StrokeStyle newStrokeStyle) |
(since 6.11) | timeZoneChanged() |
(since 6.11) | zoomChanged() |
新的 QML 方法
QML 类型DateTimeAxis :
(since 6.11) string | timeZoneAsString() |
(since 6.11) QTimeZone | timeZoneFromString(string zoneId) |
QML 类型Flickable :
(since 6.11) void | flickTo(point position) |
(since 6.11) void | flickToChild(QQuickItem *child, PositionMode mode, point offset) |
(since 6.11) void | positionViewAtChild(QQuickItem *child, PositionMode mode, point offset) |
QML 类型Qt :
(since 6.11) ArrayBuffer | atob(ArrayBuffer data) |
(since 6.11) var | atob(var data) |
(since 6.11) ArrayBuffer | btoa(ArrayBuffer data) |
(since 6.11) var | btoa(var data) |
QML 类型TextSelection :
(since 6.11) void | duplicate() |
(since 6.11) void | linkTo(url destination) |
(since 6.11) void | moveSelectionEnd(MoveOperation op, int n) |
(since 6.11) bool | moveSelectionStart(MoveOperation op, int n) |
QML 类型View3D :
(since 6.11) pickResult | closestPointPick(vector3d origin, float radius, Model model) |
(since 6.11) list<Object3D> | pickInRect(point start, point end) |
(since 6.11) pickResult | rayPick(vector3d origin, vector3d direction, Model model) |
QML 类型XrView :
(since 6.11) pickResult | closestPointPick(vector3d origin, float radius, Model model) |
(since 6.11) pickResult | rayPick(vector3d origin, vector3d direction, Model model) |
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as 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.