Qt 6.7 中新增加的类和函数
该页面包含 Qt 6.7 中引入的所有新类和函数的详尽列表。
新命名空间
| (自 6.7)命名空间 | QtVideo | 
新类
- G
- QGrpcBidirStream
- QGrpcChannelOperation
- QGrpcClientInterceptor
- QGrpcClientInterceptorManager
- QGrpcClientStream
- QGrpcInterceptorContinuation
- QGrpcServerStream
- O
- QOpcUaDiagnosticInfo
- QOpcUaEnumDefinition
- QOpcUaEnumField
- QOpcUaGenericStructHandler
- QOpcUaGenericStructValue
- QOpcUaHistoryEvent
- QOpcUaHistoryReadEventRequest
- QOpcUaStructureDefinition
- QOpcUaStructureField
- QOpcUaVariant
新成员函数
| (自 6.7)虚函数 | call(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0 | 
| (自 6.7)虚函数 | startBidirStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0 | 
| (自 6.7)虚函数 | startClientStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0 | 
| (自 6.7)虚函数 | startServerStream(std::shared_ptr<QGrpcChannelOperation> channelOperation) = 0 | 
| (自 6.7)const std::shared_ptr<QAbstractGrpcChannel> & | channel() | 
| (自6.7起)void | channelChanged() | 
| (自6.7起)QDebug | operator<<(QDebug d, QAnyStringView s) | 
| (自6.7起)void | qYieldCpu() | 
| (自6.7起)std::string_view | operator std::string_view() const | 
| (自6.7起)QDate | matchCenturyToWeekday(const QCalendar::YearMonthDay &parts, int dow) const | 
| (自6.7起)bool | parseData(QStringView data) | 
| (自6.7起)QByteArray | readAllByteArray() | 
| (自6.7起)QString | readAllString() | 
| (自6.7起)QByteArray | readAllUtf8String() | 
| (自6.7起)bool | readAndAppendToByteArray(QByteArray &dst) | 
| (自6.7起)bool | readAndAppendToString(QString &dst) | 
| (自6.7起)bool | readAndAppendToUtf8String(QByteArray &dst) | 
| (自6.7起)QCborStreamReader::StringResult<QByteArray> | readUtf8String() | 
| (自6.7起)void | checkStateChanged(Qt::CheckState state) | 
| (自6.7起)void | processEvents(QEventLoop::ProcessEventsFlags flags, QDeadlineTimer deadline) | 
| (自6.7起)bool | isInteractiveAuthorizationAllowed() const | 
| (自6.7起)void | setInteractiveAuthorizationAllowed(bool enable) | 
| (自6.7起)QDataStream & | readBytes(char *&s, qint64 &l) | 
类 QDate
| (自6.7起)QDate | fromString(QStringView string, QStringView format, int baseYear) | 
| (自6.7起)QDate | fromString(QStringView string, QStringView format, int baseYear, QCalendar cal) | 
| (自6.7起)QDate | fromString(const QString &string, QStringView format, int baseYear) | 
| (自6.7起)QDate | fromString(const QString &string, const QString &format, int baseYear) | 
| (自6.7起)QDateTime | fromString(QStringView string, QStringView format, int baseYear) | 
| (自6.7起)QDateTime | fromString(QStringView string, QStringView format, int baseYear, QCalendar cal) | 
| (自6.7起)QDateTime | fromString(const QString &string, QStringView format, int baseYear) | 
| (自6.7起)QDateTime | fromString(const QString &string, const QString &format, int baseYear) | 
类 QDebug
| (自6.7起)QDebug & | operator<<(std::nullopt_t) | 
| (自6.7起)QDebug & | operator<<(T i128) | 
| (自6.7起)QDebug & | operator<<(T u128) | 
| (自6.7起)bool | quoteStrings() const | 
| (自6.7起)void | setQuoteStrings(bool b) | 
| (自6.7起)void | processEvents(QEventLoop::ProcessEventsFlags flags, QDeadlineTimer deadline) | 
| (自 6.7)QEventLoopLocker & | operator=(QEventLoopLocker &&other) | 
| (自6.7起)void | swap(QEventLoopLocker &other) | 
| (自6.7起)void | swap(QEventLoopLocker &lhs, QEventLoopLocker &rhs) | 
类 QFont
| (自6.7起)void | clearFeatures() | 
| (自6.7起)void | clearVariableAxes() | 
| (自 6.7)QList<QFont::Tag> | featureTags() const | 
| (自 6.7)quint32 | featureValue(QFont::Tag tag) const | 
| (自6.7起)bool | isFeatureSet(QFont::Tag tag) const | 
| (自6.7起)bool | isVariableAxisSet(QFont::Tag tag) const | 
| (自6.7起)void | setFeature(QFont::Tag tag, quint32 value) | 
| (自6.7起)void | setVariableAxis(QFont::Tag tag, float value) | 
| (自6.7起)void | unsetFeature(QFont::Tag tag) | 
| (自6.7起)void | unsetVariableAxis(QFont::Tag tag) | 
| (自 6.7)QList<QFont::Tag> | variableAxisTags() const | 
| (自 6.7)float | variableAxisValue(QFont::Tag tag) const | 
| (自 6.7)QSslConfiguration | sslConfiguration() const | 
类 QIcon
| (自 6.7)QIcon | fromTheme(QIcon::ThemeIcon icon) | 
| (自 6.7)QIcon | fromTheme(QIcon::ThemeIcon icon, const QIcon &fallback) | 
| (自6.7起)bool | hasThemeIcon(QIcon::ThemeIcon icon) | 
| (自 6.7)auto | callStaticMethod(const char *methodName, Args &&... args) | 
| (自6.7起)bool | invokeMethod(QObject *context, Functor &&function, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument<FunctorReturnType> ret, Args &&... arguments) | 
| (自6.7起)bool | invokeMethod(QObject *context, Functor &&function, QTemplatedMetaMethodReturnArgument<FunctorReturnType> ret, Args &&... arguments) | 
| (自6.7起)bool | invokeMethod(QObject *context, Functor &&function, Qt::ConnectionType type, Args &&... arguments) | 
| (自6.7起)bool | invokeMethod(QObject *context, Functor &&function, Args &&... arguments) | 
| (自 6.7)QNetworkReply * | get(const QNetworkRequest &request, QIODevice *data) | 
| (自 6.7)QNetworkReply * | get(const QNetworkRequest &request, const QByteArray &data) | 
| (自6.7起)void | setTransferTimeout(std::chrono::milliseconds duration) | 
| (自 6.7)std::chrono::milliseconds | transferTimeoutAsDuration() const | 
| (自6.7起)void | setTransferTimeout(std::chrono::milliseconds duration) | 
| (自 6.7)std::chrono::milliseconds | transferTimeoutAsDuration() const | 
类 QObject
| (自 6.7)T | findChild(Qt::FindChildOptions options) const | 
| (自6.7起)bool | operator!=(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs) | 
| (自6.7起)bool | 运算符==(const QOpcUaAttributeOperand &lhs, const QOpcUaAttributeOperand &rhs) | 
| (自 6.7)QOpcUaHistoryReadResponse * | readHistoryEvents(const QOpcUaHistoryReadEventRequest &request) | 
| (自6.7起)bool | registerNodes(const QStringList &nodesToRegister) | 
| (自6.7起)void | registerNodesFinished(const QStringList &nodesToRegister, const QStringList ®isteredNodeIds, QOpcUa::UaStatusCode statusCode) | 
| (自6.7起)bool | unregisterNodes(const QStringList &nodesToUnregister) | 
| (自6.7起)void | unregisterNodesFinished(const QStringList &nodesToUnregister, QOpcUa::UaStatusCode statusCode) | 
| (自6.7起)bool | 运算符!=(const QOpcUaContentFilterElement &lhs, const QOpcUaContentFilterElement &rhs) | 
| (自 6.7)QVariant | 运算符 QVariant() const | 
| (自6.7起)bool | 运算符!=(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) | 
| (自6.7起)bool | 运算符==(const QOpcUaDataValue &lhs, const QOpcUaDataValue &rhs) | 
| (自 6.7)quint16 | serverPicoseconds() const | 
| (自6.7起)void | setServerPicoseconds(quint16 serverPicoseconds) | 
| (自6.7起)void | setSourcePicoseconds(quint16 sourcePicoseconds) | 
| (自 6.7)quint16 | sourcePicoseconds() const | 
| (自6.7起)bool | 运算符!=(const QOpcUaElementOperand &lhs, const QOpcUaElementOperand &rhs) | 
| (自6.7起)bool | 运算符==(const QOpcUaElementOperand &lhs, const QOpcUaElementOperand &rhs) | 
| (自6.7起)bool | initialized() const | 
| (自6.7起)void | setTimestampsToReturn(QOpcUa::TimestampsToReturn timestampsToReturn) | 
| (自 6.7)QOpcUa::TimestampsToReturn | timestampsToReturn() const | 
| (自 6.7)QList)<QOpcUaHistoryEvent> | events() const | 
| (自6.7起)void | readHistoryEventsFinished(const QList<QOpcUaHistoryEvent> &results, QOpcUa::UaStatusCode serviceResult) | 
| (自6.7起)bool | 运算符!=(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) | 
| (自6.7起)bool | 运算符==(const QOpcUaLiteralOperand &lhs, const QOpcUaLiteralOperand &rhs) | 
| (自 6.7)QHash<quint32, QOpcUa::UaStatusCode> | failedTriggeredItemsStatus() const | 
| (自6.7起)void | setFailedTriggeredItemsStatus(const QHash<quint32, QOpcUa::UaStatusCode> &status) | 
| (自6.7起)void | setTriggeredItemIds(const QSet<quint32> &ids) | 
| (自 6.7)QSet<quint32> | triggeredItemIds() const | 
| (自 6.7)QOpcUaHistoryReadResponse * | readHistoryEvents(const QDateTime &startTime, const QDateTime &endTime, QOpcUaMonitoringParameters::EventFilter &filter, quint32 numValues) | 
| (自 6.7)QOpcUaHistoryReadResponse * | readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds, QOpcUa::TimestampsToReturn timestampsToReturn) | 
| (自6.7起)void | valueAttributeUpdated(const QVariant &value) | 
| (自 6.7)QVariant | operator QVariant() const | 
| (自6.7起)bool | operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs) | 
类 QOpcUaSimpleAttributeOperand
| (自6.7起)bool | operator!=(const QOpcUaSimpleAttributeOperand &lhs, const QOpcUaSimpleAttributeOperand &rhs) | 
| (自6.7起)bool | is_eq(QPartialOrdering o) | 
| (自6.7起)bool | is_gt(QPartialOrdering o) | 
| (自6.7起)bool | is_gteq(QPartialOrdering o) | 
| (自6.7起)bool | is_lt(QPartialOrdering o) | 
| (自6.7起)bool | is_lteq(QPartialOrdering o) | 
| (自6.7起)bool | is_neq(QPartialOrdering o) | 
类 QProcess
| (自6.7起)void | failChildProcessModifier(const char *description, int error) | 
| (since 6.7)QList<QByteArray> | unknownFieldData(qint32 field) const | 
| (since 6.7)QList<qint32> | unknownFieldNumbers() const | 
| (自6.7起)void | shouldPreserveUnknownFields(bool preserveUnknownFields) | 
| (preliminary)void | 保存() | 
| (preliminary)void | saveAs(const QUrl &url) | 
| (自6.7起)void | setTextDocument(QTextDocument *document) | 
| (自6.7起)void | textDocumentChanged() | 
| (自6.7起)void | loadFromModule(QAnyStringView uri, QAnyStringView typeName) | 
| (自6.7起)void | clearHttpCacheCompleted() | 
| (since 6.7)QSGTextNode * | createTextNode() const | 
类 QRawFont
| (自6.7起)QByteArray | fontTable(QFont::Tag tag) const | 
| (自6.7起)void | setLocalServerOptions(QLocalServer::SocketOptions options) | 
| (since 6.7)int | multiViewCount() const | 
| (自6.7起)void | setMultiViewCount(int count) | 
| (since 6.7)int | multiViewCount() const | 
| (自6.7起)void | setMultiViewCount(int count) | 
类 QShader
| (自6.7起)void | setMultiViewCount(int count) | 
| (自6.7起)bool | owner_before(const QSharedPointer<X> &other) const | 
| (自6.7起)bool | owner_before(const QWeakPointer<X> &other) const | 
| (自6.7起)bool | owner_equal(const QSharedPointer<X> &other) const | 
| (自6.7起)bool | owner_equal(const QWeakPointer<X> &other) const | 
| (since 6.7)size_t | owner_hash() const | 
| (自6.7起)void | dismiss() | 
| (自6.7起)bool | isPositionalBindingEnabled() const | 
| (自6.7起)void | setPositionalBindingEnabled(bool enable) | 
| (自 6.7)auto | qMakeStaticCaseInsensitiveLatin1StringMatcher(const char (&)[N] patternToMatch) | 
| (自 6.7)auto | qMakeStaticCaseSensitiveLatin1StringMatcher(const char (&)[N] patternToMatch) | 
类 QString
| (since 6.7)std::u16string_view | operator std::u16string_view() const | 
| (since 6.7)QStringList | filter(const QStringMatcher &matcher) const | 
| (since 6.7)QStringList | filter(QLatin1StringView str, Qt::CaseSensitivity cs) const | 
| (since 6.7)QStringView | patternView() const | 
| (自6.7起)bool | isLower() const | 
| (自6.7起)bool | isUpper() const | 
| (since 6.7)std::u16string_view | operator std::u16string_view() const | 
| (since 6.7)QtSvg::Options | options() const | 
| (自6.7起)void | setOptions(QtSvg::Options options) | 
| (since 6.7)QTemporaryFile * | createNativeFile(const std::filesystem::path &fileName) | 
| (自6.7起)bool | rename(const std::filesystem::path &newName) | 
| (自6.7起)void | setFileTemplate(const std::filesystem::path &name) | 
| (since 6.7)std::basic_string_view<QUtf8StringView::storage_type> | operator std::basic_string_view<QUtf8StringView::storage_type>() const | 
类 QVariant
| (自 6.7)QVariant | fromMetaType(QMetaType type, const void *copy) | 
| (自 6.7)T | qvariant_cast(QVariant &&value) | 
| (自6.7起)void | setEnabledFeaturesModifier(const QVulkanWindow::EnabledFeaturesModifier &modifier) | 
| (自6.7起)void | setEnabledFeaturesModifier(QVulkanWindow::EnabledFeatures2Modifier modifier) | 
| (自6.7起)void | sendUnicodeKeyPressEvent(uint unicode) | 
| (自6.7起)void | sendUnicodeKeyReleaseEvent(uint unicode) | 
| (自6.7起)bool | owner_before(const QWeakPointer<X> &other) const | 
| (自6.7起)bool | owner_before(const QSharedPointer<X> &other) const | 
| (自6.7起)bool | owner_equal(const QWeakPointer<X> &other) const | 
| (自6.7起)bool | owner_equal(const QSharedPointer<X> &other) const | 
| (since 6.7)size_t | owner_hash() const | 
| (自6.7起)void | webAuthUxRequested(QWebEngineWebAuthUxRequest *request) | 
| (自6.7起)void | clearHttpCacheCompleted() | 
| (since 6.7)QIODevice * | requestBody() const | 
| (since 6.7)QIODevice * | requestBody() const | 
命名空间中新增的功能
| (since 6.7)Qt::strong_ordering | compareThreeWay(Enum lhs, Enum rhs) | 
| (since 6.7)Qt::strong_ordering | compareThreeWay(const LeftType *lhs, const RightType *rhs) | 
| (since 6.7)Qt::partial_ordering | compareThreeWay(FloatType lhs, IntType rhs) | 
| (since 6.7)Qt::partial_ordering | compareThreeWay(IntType lhs, FloatType rhs) | 
| (since 6.7)Qt::partial_ordering | compareThreeWay(LeftFloat lhs, RightFloat rhs) | 
| (since 6.7)Qt::strong_ordering | compareThreeWay(LeftInt lhs, RightInt rhs) | 
| (自6.7起)void | qSleep(std::chrono::milliseconds msecs) | 
| (自6.7起)void | qWait(std::chrono::milliseconds msecs) | 
| (自6.7起)bool | qWaitFor(Functor predicate, QDeadlineTimer deadline) | 
| (自6.7起)bool | qWaitForWindowFocused(QWidget *widget, QDeadlineTimer timeout) | 
| (自6.7起)bool | qWaitForWindowFocused(QWindow *window, QDeadlineTimer timeout) | 
新增全局函数
| (自 6.7)auto | qCompareThreeWay(const LeftType &lhs, const RightType &rhs) | 
| (自6.7起)void | qDrawPlainRoundedRect(QPainter *painter, const QRect &rect, qreal rx, qreal ry, const QColor &lineColor, int lineWidth, const QBrush *fill) | 
| (自6.7起)void | qDrawPlainRoundedRect(QPainter *painter, int x, int y, int width, int height, qreal rx, qreal ry, const QColor &lineColor, int lineWidth, const QBrush *fill) | 
新增宏
| (since 6.7) | QT_NO_CONTEXTLESS_CONNECT | 
| (since 6.7) | Q_NODISCARD_CTOR_X(message) | 
| (since 6.7) | Q_NODISCARD_X(message) | 
新增枚举类型
| (since 6.7)enum class | TransitionResolution { Reject, RelativeToBefore, RelativeToAfter, PreferBefore, PreferAfter, …, LegacyBehavior } | 
| (since 6.7)enum class | ThemeIcon { AddressBookNew, ApplicationExit, AppointmentNew, CallStart, CallStop, …, NThemeIcons } | 
| (since 6.7)enum class | TagSeparator { Dash, Underscore } | 
| (since 6.7)enum class | TimestampsToReturn { Source, Server, Both, Neither, Invalid } | 
| (since 6.7)enum | Option { NoOption, Tiny12FeaturesOnly } | 
| (since 6.7)enum class | Rotation { None, Clockwise90, Clockwise180, Clockwise270 } | 
新增枚举值
新类型别名
| (since 6.7) | const_pointer | 
| (since 6.7) | pointer | 
| (since 6.7) | QRhiShaderResourceBindingSet | 
| (since 6.7) | EnabledFeatures2Modifier | 
新属性
| 
 | 
 | 
新变量
| (since 6.7) | DefaultTwoDigitBaseYear | 
新QML类型
新的QML属性
QML类型 ConvexMeshShape
| (since 6.7) | geometry : Geometry | 
QML类型 CustomMaterial
| (since 6.7) | destinationAlphaBlend : enumeration | 
| (since 6.7) | sourceAlphaBlend : enumeration | 
QML类型 GeoJsonData
QML类型 HeightFieldShape
| (since 6.7) | image : Image | 
QML类型 Item
| (since 6.7) | focusPolicy : enumeration | 
QML类型 MediaPlayer
| (since 6.7) | autoPlay : bool | 
QML类型 PathText
| (since 6.7) | font.variableAxes : object | 
QML类型 PhysicsWorld
| (since 6.7) | numThreads : int | 
| (since 6.7) | reportKinematicKinematicCollisions : bool | 
| (since 6.7) | reportStaticKinematicCollisions : bool | 
QML类型 Rectangle
| (since 6.7) | bottomLeftRadius : real | 
| (since 6.7) | bottomRightRadius : real | 
| (since 6.7) | topLeftRadius : 实数 | 
| (since 6.7) | topRightRadius : 实数 | 
QML 类型 Shape
| (since 6.7) | horizontalAlignment : 枚举 | 
| (since 6.7) | verticalAlignment : 枚举 | 
QML 类型 ShapePath
| (since 6.7) | pathHints : PathHints | 
QML 类型 SystemPalette
| (since 6.7) | accent : 颜色 | 
QML 类型 Text
| (since 6.7) | font.variableAxes : 对象 | 
QML 类型 TextDocument
| (初步) | errorString : 字符串 | 
| (初步) | modified : 布尔 | 
| (初步) | source : url | 
| (初步) | status : 枚举 | 
QML 类型 TextEdit
| (初步) | cursorSelection : QtQuick::TextSelection | 
| (since 6.7) | font.variableAxes : 对象 | 
QML 类型 TextInput
| (since 6.7) | font.variableAxes : 对象 | 
QML 类型 Texture
| (since 6.7) | textureProvider : RenderExtension | 
QML 类型 TriangleMeshShape
| (since 6.7) | geometry : 几何体 | 
QML 类型 Video
| (since 6.7) | autoPlay : 布尔 | 
QML 类型 View3D
| (since 6.7) | effectiveTextureSize : 大小 | 
| (since 6.7) | explicitTextureHeight : 整数 | 
| (since 6.7) | explicitTextureWidth : 整数 | 
QML 类型 Window
| (初步) | parent : 变量 | 
QML 类型 cameraDevice
| (since 6.7) | correctionAngle : QtVideo::Rotation | 
新的 QML 方法
QML 类型 StackView
| (自 6.7 版本以来)项目 | popCurrentItem(操作) | 
| (自 6.7 版本以来)项目 | popToIndex(索引, 操作) | 
| (自 6.7 版本以来)项目 | popToItem(项目, 操作) | 
| (自 6.7 版本以来)项目 | pushItem(项目, 属性, 操作) | 
| (自 6.7 版本以来)项目 | pushItem(组件, 属性, 操作) | 
| (自 6.7 版本以来)项目 | pushItem(url, 属性, 操作) | 
| (自 6.7 版本以来)项目 | pushItems(项目列表, 操作) | 
| (自 6.7 版本以来)项目 | replaceCurrentItem(项目列表, 操作) | 
| (自 6.7 版本以来)项目 | replaceCurrentItem(项目, 属性, 操作) | 
| (自 6.7 版本以来)项目 | replaceCurrentItem(组件, 属性, 操作) | 
| (自 6.7 版本以来)项目 | replaceCurrentItem(url, 属性, 操作) | 
QML 类型 TextDocument
QML 类型 WaylandSeat
| (自6.7起)void | sendUnicodeKeyPressEvent(uint unicode) | 
| (自6.7起)void | sendUnicodeKeyReleaseEvent(uint unicode) | 
© 2024 Qt 公司有限公司。本文件中包含的文档贡献归各自所有者所有版权。附带的文档受免费软件基金会发布的 GNU 自由文档许可证版本 1.3 条款的约束。Qt 及相关标志是 Qt 公司在芬兰和其他全球国家/地区的商标。所有其他商标均为各自所有者的财产。