Qt 6.1 の新しいクラスと関数

このページでは、Qt 6.1 で導入された新しいクラスと関数の一覧を紹介します。

新しいクラス

新しいメンバ関数

クラスQByteArray

(since 6.1) qsizetype erase(QByteArray &ba, const T &t)
(since 6.1) QByteArray::iterator erase(QByteArray::const_iterator first, QByteArray::const_iterator last)
(since 6.1) qsizetype erase_if(QByteArray &ba, Predicate pred)
(since 6.1) QByteArray &removeIf(Predicate pred)

クラスQColorSpace

(since 6.1) void setTransferFunction(const QList<uint16_t> &transferFunctionTable)
(since 6.1) void setTransferFunctions(const QList<uint16_t> &redTransferFunctionTable, const QList<uint16_t> &greenTransferFunctionTable, const QList<uint16_t> &blueTransferFunctionTable)
(since 6.1) QColorSpace withTransferFunction(const QList<uint16_t> &transferFunctionTable) const
(since 6.1) QColorSpace withTransferFunctions(const QList<uint16_t> &redTransferFunctionTable, const QList<uint16_t> &greenTransferFunctionTable, const QList<uint16_t> &blueTransferFunctionTable) const

クラスQFuture

(since 6.1) QFuture<T> onCanceled(QObject *context, Function &&handler)
(since 6.1) QFuture<T> onFailed(QObject *context, Function &&handler)
(since 6.1) QFuture<QFuture<T>::ResultType<Function>> then(QObject *context, Function &&function)

クラスQHash

(since 6.1) qsizetype erase_if(QHash<Key, T> &hash, Predicate pred)
(since 6.1) qsizetype removeIf(Predicate pred)

クラスQJSEngine

(since 6.1) void throwError(const QJSValue &error)

クラスQJSPrimitiveValue

(since 6.1) bool operator!=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) QJSPrimitiveValue operator*(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) QJSPrimitiveValue operator+(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) QJSPrimitiveValue operator-(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) QJSPrimitiveValue operator/(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) bool operator<(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) bool operator<=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) bool operator==(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) bool operator>(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)
(since 6.1) bool operator>=(const QJSPrimitiveValue &lhs, const QJSPrimitiveValue &rhs)

クラスQLabel

(since 6.1) QTextDocument::ResourceProvider resourceProvider() const
(since 6.1) void setResourceProvider(const QTextDocument::ResourceProvider &provider)

クラスQLayout

(since 6.1) void unsetContentsMargins()

クラスQList

(since 6.1) qsizetype erase(QList<T> &list, const AT &t)
(since 6.1) qsizetype erase_if(QList<T> &list, Predicate pred)
(since 6.1) qsizetype removeIf(Predicate pred)

クラスQLocale

(since 6.1) QLocale::Script codeToScript(QStringView scriptCode)
(since 6.1) QString scriptToCode(QLocale::Script script)

クラスQMap

(since 6.1) qsizetype erase_if(QMap<Key, T> &map, Predicate pred)
(since 6.1) QMap<Key, T>::size_type removeIf(Predicate pred)

クラスQMetaType

(since 6.1) bool hasRegisteredDataStreamOperators() const

クラスQMultiHash

(since 6.1) qsizetype erase_if(QMultiHash<Key, T> &hash, Predicate pred)
(since 6.1) qsizetype removeIf(Predicate pred)

クラスQMultiMap

(since 6.1) qsizetype erase_if(QMultiMap<Key, T> &map, Predicate pred)
(since 6.1) QMultiMap<Key, T>::size_type removeIf(Predicate pred)

クラスQSGOpenGLTexture

(since 6.1) QSGTexture *fromNativeExternalOES(GLuint textureId, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

クラスQNetworkCookie

(since 6.1) QNetworkCookie::SameSite sameSitePolicy() const
(since 6.1) void setSameSitePolicy(QNetworkCookie::SameSite sameSite)

クラスQOperatingSystemVersion

(since 6.1) QVersionNumber version() const

クラスQQmlPropertyMap

(since 6.1) void freeze()
(since 6.1) void insert(const QVariantHash &values)

クラスQQuickGraphicsConfiguration

(since 6.1) QByteArrayList preferredInstanceExtensions()

クラスQSet

(since 6.1) qsizetype erase_if(QSet<T> &set, Predicate pred)
(since 6.1) QSet<T>::iterator insert(QSet<T>::const_iterator it, const T &value)
(since 6.1) qsizetype removeIf(Pred pred)

クラスQSocketNotifier

(since 6.1) bool isValid() const
(since 6.1) void setSocket(qintptr socket)

クラスQSslSocket

(since 6.1) QString activeBackend()
(since 6.1) QList<QString> availableBackends()
(since 6.1) QList<QSsl::ImplementedClass> implementedClasses(const QString &backendName)
(since 6.1) bool isClassImplemented(QSsl::ImplementedClass cl, const QString &backendName)
(since 6.1) bool isFeatureSupported(QSsl::SupportedFeature ft, const QString &backendName)
(since 6.1) bool isProtocolSupported(QSsl::SslProtocol protocol, const QString &backendName)
(since 6.1) bool setActiveBackend(const QString &backendName)
(since 6.1) QList<QSsl::SupportedFeature> supportedFeatures(const QString &backendName)
(since 6.1) QList<QSsl::SslProtocol> supportedProtocols(const QString &backendName)

クラスQString

(since 6.1) QString::iterator erase(QString::const_iterator first, QString::const_iterator last)
(since 6.1) qsizetype erase(QString &s, const T &t)
(since 6.1) qsizetype erase_if(QString &s, Predicate pred)
(since 6.1) QString fromUtf8(const char8_t *str)
(since 6.1) QString &removeIf(Predicate pred)

クラスQStringView

(since 6.1) QStringView::const_iterator constBegin() const
(since 6.1) QStringView::const_iterator constEnd() const
(since 6.1) bool contains(const QRegularExpression &re, QRegularExpressionMatch *rmatch) const
(since 6.1) qsizetype count(const QRegularExpression &re) const
(since 6.1) qsizetype indexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const
(since 6.1) qsizetype lastIndexOf(const QRegularExpression &re, qsizetype from, QRegularExpressionMatch *rmatch) const

クラスQStyle

(since 6.1) QString name() const

クラスQTextDocument

(since 6.1) QTextDocument::ResourceProvider defaultResourceProvider()
(since 6.1) QTextDocument::ResourceProvider resourceProvider() const
(since 6.1) void setDefaultResourceProvider(const QTextDocument::ResourceProvider &provider)
(since 6.1) void setResourceProvider(const QTextDocument::ResourceProvider &provider)

クラスQUntypedBindable

(since 6.1) bool isReadOnly() const
(since 6.1) QUntypedPropertyBinding takeBinding()

クラスQVarLengthArray

(since 6.1) qsizetype erase(QVarLengthArray<T, Prealloc> &array, const AT &t)
(since 6.1) qsizetype erase_if(QVarLengthArray<T, Prealloc> &array, Predicate pred)
(since 6.1) qsizetype removeAll(const AT &t)
(since 6.1) qsizetype removeIf(Predicate pred)
(since 6.1) bool removeOne(const AT &t)

名前空間内の新関数

(since 6.1) QFuture<T> makeExceptionalFuture(std::__exception_ptr::exception_ptr exception)
(since 6.1) QFuture<T> makeExceptionalFuture(const QException &exception)

新しいグローバル関数

(since 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)
(since 6.1) auto qHypot(Tx x, Ty y, Tz z)
(since 6.1) auto qHypot(Tx x, Ty y)
(since 6.1) auto qHypot(F first, Fs... rest)
(since 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)
(since 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)

新しい列挙型

(since 6.1) enum class SameSite { Default, None, Lax, Strict }
(since 6.1) enum class ImplementedClass { Key, Certificate, Socket, DiffieHellman, EllipticCurve, …, DtlsCookie }
(since 6.1) enum class SupportedFeature { CertificateVerification, ClientSideAlpn, ServerSideAlpn, Ocsp, Psk, …, Alerts }

新しい型のエイリアス

(since 6.1) ResourceProvider

新しいプロパティ

新しい変数

(since 6.1) Android10
(since 6.1) Android11
(since 6.1) AndroidOreo_MR1
(since 6.1) AndroidPie

©2024 The Qt Company Ltd. 本書に含まれる文書の著作権は、それぞれの所有者に帰属します。 本書で提供されるドキュメントは、Free Software Foundation が発行したGNU Free Documentation License version 1.3に基づいてライセンスされています。 Qtおよびそれぞれのロゴは、フィンランドおよびその他の国におけるThe Qt Company Ltd.の 商標です。その他すべての商標は、それぞれの所有者に帰属します。