Qt 6.1 中新引入的类和函数
本页包含 Qt 6.1 中引入的所有新类和函数的完整列表。
新类
新成员函数
(自 6.1) QByteArray::iterator | erase(QByteArray::const_iterator first, QByteArray::const_iterator last) |
(自 6.1) qsizetype | erase(QByteArray &ba, const T &t) |
(自 6.1) qsizetype | erase_if(QByteArray &ba, Predicate pred) |
(自 6.1) QByteArray & | removeIf(Predicate pred) |
(自 6.1) void | setTransferFunction(const QList<uint16_t> &transferFunctionTable) |
(自 6.1) void | setTransferFunctions(const QList<uint16_t> &redTransferFunctionTable, const QList<uint16_t> &greenTransferFunctionTable, const QList<uint16_t> &blueTransferFunctionTable) |
(自 6.1) QColorSpace | withTransferFunction(const QList<uint16_t> &transferFunctionTable) const |
(自 6.1) QColorSpace | withTransferFunctions(const QList<uint16_t> &redTransferFunctionTable, const QList<uint16_t> &greenTransferFunctionTable, const QList<uint16_t> &blueTransferFunctionTable) const |
类 QFuture
(自 6.1) QFuture<T> | onCanceled(QObject *context, Function &&handler) |
(自 6.1) QFuture<T> | onFailed(QObject *context, Function &&handler) |
(自 6.1) QFuture<QFuture<T>::ResultType<Function>> | then(QObject *context, Function &&function) |
类 QHash
(自 6.1) qsizetype | removeIf(Predicate pred) |
(自 6.1) void | throwError(const QJSValue &error) |
(自 6.1) bool | operator!=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) QJSPrimitiveValue | operator*(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) QJSPrimitiveValue | operator+(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) QJSPrimitiveValue | operator-(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) QJSPrimitiveValue | operator/(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) bool | operator<(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) bool | operator<=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) bool | operator==(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) bool | operator>(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
(自 6.1) bool | operator>=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs) |
类 QLabel
(自6.1开始) QTextDocument::ResourceProvider | resourceProvider() const |
(自 6.1) void | setResourceProvider(const QTextDocument::ResourceProvider &provider) |
类 QLayout
(自 6.1) void | unsetContentsMargins() |
类 QList
类 QLocale
(自6.1开始) QLocale::Script | codeToScript(QStringView scriptCode) |
(自6.1开始) QString | scriptToCode(QLocale::Script script) |
类 QMap
(自6.1开始) QMap<Key, T>::size_type | removeIf(Predicate pred) |
(自 6.1) bool | hasRegisteredDataStreamOperators() const |
(自 6.1) qsizetype | removeIf(Predicate pred) |
(自6.1开始) QMultiMap<Key, T>::size_type | removeIf(Predicate pred) |
(自6.1开始) QSGTexture * | fromNativeExternalOES(GLuint textureId, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options) |
(自6.1开始) QNetworkCookie::SameSite | sameSitePolicy() const |
(自 6.1) void | setSameSitePolicy(QNetworkCookie::SameSite sameSite) |
(自6.1开始) QVersionNumber | version() const |
(自6.1开始) QByteArrayList | preferredInstanceExtensions() |
类 QSet
(自6.1开始) QSet<T>::iterator | insert(QSet<T>::const_iterator it, const T &value) |
(自 6.1) qsizetype | removeIf(Pred pred) |
(自6.1开始) QString | activeBackend() |
(自6.1起) QList<QString> | availableBackends() |
(自6.1起) QList<QSsl::ImplementedClass> | implementedClasses(const QString &backendName) |
(自 6.1) bool | isClassImplemented(QSsl::ImplementedClass cl, const QString &backendName) |
(自 6.1) bool | isFeatureSupported(QSsl::SupportedFeature ft, const QString &backendName) |
(自 6.1) bool | isProtocolSupported(QSsl::SslProtocol protocol, const QString &backendName) |
(自 6.1) bool | setActiveBackend(const QString &backendName) |
(自6.1起) QList<QSsl::SupportedFeature> | supportedFeatures(const QString &backendName) |
(自6.1起) QList<QSsl::SslProtocol> | supportedProtocols(const QString &backendName) |
类 QString
(自6.1起) QString::iterator | erase(QString::const_iterator first, QString::const_iterator last) |
(自 6.1) qsizetype | erase(QString &s, const T &t) |
(自 6.1) qsizetype | erase(QList<T> &list, const AT &t) |
(自 6.1) qsizetype | erase_if(QString &s, Predicate pred) |
(自 6.1) qsizetype | erase_if(QHash<Key, T> &hash, Predicate pred) |
(自 6.1) qsizetype | erase_if(QMultiHash<Key, T> &hash, Predicate pred) |
(自 6.1) qsizetype | erase_if(QMap<Key, T> &map, Predicate pred) |
(自 6.1) qsizetype | erase_if(QMultiMap<Key, T> &map, Predicate pred) |
(自 6.1) qsizetype | erase_if(QSet<T> &set, Predicate pred) |
(自6.1开始) QString | fromUtf8(const char8_t *str) |
(自6.1起) QString & | removeIf(Predicate pred) |
(自6.1起) QStringView::const_iterator | constBegin() const |
(自6.1起) QStringView::const_iterator | constEnd() const |
(自 6.1) bool | contains(const QRegularExpression &re, QRegularExpressionMatch *rmatch) const |
(自 6.1) qsizetype | count(const QRegularExpression &re) const |
(自 6.1) qsizetype | indexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const |
(自 6.1) qsizetype | lastIndexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const |
类 QStyle
(自6.1开始) QString | name() const |
(自6.1开始) QTextDocument::ResourceProvider | defaultResourceProvider() |
(自6.1开始) QTextDocument::ResourceProvider | resourceProvider() const |
(自 6.1) void | setDefaultResourceProvider(const QTextDocument::ResourceProvider &provider) |
(自 6.1) void | setResourceProvider(const QTextDocument::ResourceProvider &provider) |
(自 6.1) bool | isReadOnly() const |
(自6.1起) QUntypedPropertyBinding | takeBinding() |
(自 6.1) qsizetype | erase(QVarLengthArray<T, Prealloc> &array, const AT &t) |
(自 6.1) qsizetype | erase_if(QVarLengthArray<T, Prealloc> &array, Predicate pred) |
(自 6.1) qsizetype | removeAll(const AT &t) |
(自 6.1) qsizetype | removeIf(Predicate pred) |
(自 6.1) bool | removeOne(const AT &t) |
命名空间中的新函数
(自 6.1) QFuture<T> | makeExceptionalFuture(std::__exception_ptr::exception_ptr exception) |
(自 6.1) QFuture<T> | makeExceptionalFuture(const QException &exception) |
新全局函数
(自 6.1) typename std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> | qAddOverflow(T v1, T v2, T *result) |
(自 6.1) auto | qHypot(F first, Fs... rest) |
(自 6.1) auto | qHypot(Tx x, Ty y, Tz z) |
(自 6.1) auto | qHypot(Tx x, Ty y) |
(自 6.1) typename std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> | qMulOverflow(T v1, T v2, T *result) |
(自 6.1) typename std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> | qSubOverflow(T v1, T v2, T *result) |
新枚举类型
(自 6.1) enum class | SameSite { Default, None, Lax, Strict } |
(自 6.1) enum class | ImplementedClass { Key, Certificate, Socket, DiffieHellman, EllipticCurve, …, DtlsCookie } |
(自 6.1) enum class | SupportedFeature { CertificateVerification, ClientSideAlpn, ServerSideAlpn, Ocsp, Psk, …, Alerts } |
新类型别名
(自 6.1) | ResourceProvider |
新属性
(自 6.1)
sortIndicatorClearable : const
新变量
(自 6.1) | Android10 |
(自 6.1) | Android11 |
(自 6.1) | AndroidOreo_MR1 |
(自 6.1) | AndroidPie |
© 2024 The Qt Company Ltd. 本文档中的贡献均为各自版权所有者的财产。本提供在此的文档是根据自由软件基金会发布的 GNU 自由文档许可证版本 1.3 的条款许可的。Qt 及其相应的标志是 The Qt Company Ltd. 在芬兰和/或世界其他国家的商标。所有其他商标都是各自所有者的财产。