Qt 6.3 中的新类和函数
本页包含 Qt 6.3 中引入的所有新类和函数的全面列表。
新类
新成员函数
| (自 6.3)bool | hasSeries(QAbstract3DSeries *series) const | 
| (自 6.3)QByteArray | serviceData(const QBluetoothUuid &serviceId) const | 
| (自 6.3)QMultiHash<QBluetoothUuid, QByteArray> | serviceData() const | 
| (自 6.3)QList<QBluetoothUuid> | serviceIds() const | 
| (自 6.3)bool | setServiceData(const QBluetoothUuid &serviceId, const QByteArray &data) | 
| (自 6.3)bool | isValidUtf8() const | 
| (自 6.3)QByteArray | join(QByteArrayView separator) const | 
| (自 6.3)qsizetype | indexIn(QByteArrayView data, qsizetype from) const | 
| (自 6.3)bool | isValidUtf8() const | 
| (自 6.3)double | toDouble(bool *ok) const | 
| (自 6.3)float | toFloat(bool *ok) const | 
| (自 6.3)int | toInt(bool *ok, int base) const | 
| (自 6.3)long | toLong(bool *ok, int base) const | 
| (自 6.3)qlonglong | toLongLong(bool *ok, int base) const | 
| (自6.3起)短整型 | toShort(bool *ok, int base) const | 
| (自6.3起)无符号整型 | toUInt(bool *ok, int base) const | 
| (自6.3起)无符号长整型 | toULong(bool *ok, int base) const | 
| (自6.3起)qulonglong | toULongLong(bool *ok, int base) const | 
| (自6.3起)ushort | toUShort(bool *ok, int base) const | 
| (自6.3起)QByteArrayView | trimmed() const | 
| (自6.3起)QCborArray | fromJsonArray(QJsonArray &&array) | 
类 QCborMap
| (自6.3起)QCborMap | fromJsonObject(QJsonObject &&obj) | 
| (自 6.3)int | defaultCompare(QStringView s1, QStringView s2) | 
| (自6.3起)QCollatorSortKey | defaultSortKey(QStringView key) | 
| (自6.3起)QByteArrayView | resultView() const | 
类 QDir
| (自 6.3)bool | mkdir(const QString &dirName, QFileDevice::Permissions permissions) const | 
| (自6.3起)QFileInfo | nextFileInfo() | 
| (自6.3起)虚拟 void | fixup(QString &input) const override | 
类 QFile
| (自6.3起)std::filesystem::path | filesystemSymLinkTarget() const | 
| (自6.3起)std::filesystem::path | filesystemSymLinkTarget(const std::filesystem::path &fileName) | 
| (自 6.3)bool | open(QIODeviceBase::OpenMode mode, QFileDevice::Permissions permissions) | 
| (自6.3起)std::optional<QFont> | displayFont(const QString &fontFamily) const | 
| (自6.3起)QString | sampleTextForFont(const QString &fontFamily) const | 
| (自6.3起)QString | sampleTextForSystem(QFontDatabase::WritingSystem writingSystem) const | 
| (自6.3起)void | setDisplayFont(const QString &fontFamily, const QFont &font) | 
| (自6.3起)void | setSampleTextForFont(const QString &fontFamily, const QString &sampleText) | 
| (自6.3起)void | setSampleTextForSystem(QFontDatabase::WritingSystem writingSystem, const QString &sampleText) | 
| (自6.3起)QRect | boundingRect(const QString &text, const QTextOption &option) const | 
| (自 6.3)int | horizontalAdvance(const QString &text, const QTextOption &option) const | 
| (自6.3起)QRect | tightBoundingRect(const QString &text, const QTextOption &option) const | 
| (自6.3起)QRectF | boundingRect(const QString &text, const QTextOption &option) const | 
| (自6.3起)qreal | horizontalAdvance(const QString &text, const QTextOption &option) const | 
| (自6.3起)QRectF | tightBoundingRect(const QString &text, const QTextOption &option) const | 
| (自6.3起)QStringList | seatNames() | 
| (自6.3起)QDebug | operator<<(QDebug debug, const QVarLengthArray<T, P> &array) | 
| (自 6.3)qsizetype | lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const | 
| (自 6.3)int | listenBacklogSize() const | 
| (自6.3起)void | setListenBacklogSize(int size) | 
类 QLocale
| (自6.3起)QLocale::Language | codeToLanguage(QStringView languageCode, QLocale::LanguageCodeTypes codeTypes) | 
| (自6.3起)QString | languageToCode(QLocale::Language language, QLocale::LanguageCodeTypes codeTypes) | 
| (自 6.3)bool | loadDefaultBackend() | 
| (自6.3起)QNetworkInformation::Features | supportedFeatures() const | 
| (自6.3起)void | requestSent() | 
| (自6.3起)void | socketStartedConnecting() | 
类 QObject
| (自6.3起)QList<T> | findChildren(Qt::FindChildOptions options) const | 
| (自6.3起)QOpcUaHistoryReadResponse * | readHistoryData(const QOpcUaHistoryReadRawRequest &request) | 
| (自6.3起)QDebug | operator<<(QDebug debug, const QOpcUaLocalizedText &text) | 
| (自6.3起)QOpcUaHistoryReadResponse * | readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds) | 
| (自6.3起)QDebug | operator<<(QDebug debug, const QOpcUaQualifiedName &name) | 
| (自 6.3)bool | inheritsFromParent() const | 
| (自6.3起)void | dumpItemTree() const | 
| (自6.3起)void | ensurePolished() | 
| (自6.3起)qreal | devicePixelRatio() const | 
| (自6.3起)void | setDevicePixelRatio(qreal ratio) | 
| (自 6.3)bool | hasCaptured(const QString &name) const | 
| (自 6.3)bool | hasCaptured(QStringView name) const | 
| (自 6.3)bool | hasCaptured(int nth) const | 
| (自 6.3)bool | tryAcquire(int n, std::chrono::duration<Rep, Period> timeout) | 
| (自 6.3)bool | try_acquire() | 
| (自 6.3)bool | try_acquire_for(const std::chrono::duration<Rep, Period> &timeout) | 
| (自 6.3)bool | try_acquire_until(const std::chrono::time_point<Clock, Duration> &tp) | 
类 QString
| (自 6.3)qsizetype | lastIndexOf(QChar c, Qt::CaseSensitivity cs) const | 
| (自 6.3)qsizetype | lastIndexOf(QChar c, Qt::CaseSensitivity cs) const | 
| (自 6.3)bool | operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) | 
| (自 6.3)bool | operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) | 
| (自 6.3)int | listenBacklogSize() const | 
| (自6.3起)void | setListenBacklogSize(int size) | 
| (自6.3起)void | startOnReservedThread(QRunnable *runnable) | 
| (自6.3起)void | startOnReservedThread(Callable &&callableToRun) | 
类 QUrl
| (自6.3起)QString | fromAce(const QByteArray &domain, QUrl::AceProcessingOptions options) | 
| (自 6.3)QByteArray | toAce(const QString &domain, QUrl::AceProcessingOptions options) | 
| (自 6.3)bool | isValidUtf8() const | 
| (since 6.3)QVarLengthArray<T, Prealloc>::iterator | emplace(QVarLengthArray<T, Prealloc>::const_iterator pos, Args &&... args) | 
| (since 6.3)T & | emplace_back(Args &&... args) | 
类 QWidget
| (since 6.3)QAction * | addAction(const QString &text) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text) | 
| (since 6.3)QAction * | addAction(const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char *member, Qt::ConnectionType type) | 
| (since 6.3)QAction * | addAction(const QString &text, Args &&... args) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text, Args &&... args) | 
| (since 6.3)QAction * | addAction(const QString &text, const QKeySequence &shortcut) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut) | 
| (since 6.3)QAction * | addAction(const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, const QObject *receiver, const char *member, Qt::ConnectionType type) | 
| (since 6.3)QAction * | addAction(const QString &text, const QKeySequence &shortcut, Args &&... args) | 
| (since 6.3)QAction * | addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args) | 
命名空间中的新功能
| (自6.3起)void | failOnWarning(const char *message) | 
| (自6.3起)void | failOnWarning(const QRegularExpression &messagePattern) | 
| (自6.3以来)QFuture<输出序列> | whenAll(Futures &&... ) | 
| (自6.3以来)QFuture<输出序列> | whenAll(InputIt first, InputIt last) | 
| (自6.3以来)QFuture | whenAny(Futures &&... futures) | 
| (自6.3以来)QFuture | whenAny(InputIt first, InputIt last) | 
新全局函数
| (自6.3以来)const char * | qWebEngineChromiumSecurityPatchVersion() | 
新宏
| (自6.3以来) | QT_TRID_N_NOOP(id) | 
| (自6.3以来) | QVERIFY_THROWS_EXCEPTION(exceptiontype, ...) | 
| (自6.3以来) | QVERIFY_THROWS_NO_EXCEPTION(...) | 
| (自6.3以来) | Q_APPLICATION_STATIC(Type, VariableName, ...) | 
| (自6.3以来) | Q_GADGET_EXPORT(EXPORT_MACRO) | 
新枚举类型
| (自6.3以来)enum class | TransportMedium { Unknown, Ethernet, Cellular, WiFi, Bluetooth } | 
| (自6.3以来)enum | Initialization { InheritFromParent } | 
| (自6.3以来)enum | AceProcessingOption { IgnoreIDNWhitelist, AceTransitionalProcessing } | 
新枚举值
新属性
| 
 | 
 | 
新变量
| (自6.3以来) | MacOSMonterey | 
| (自6.3以来) | Windows10_1809 | 
| (自6.3以来) | Windows10_1903 | 
| (自6.3以来) | Windows10_1909 | 
| (自6.3以来) | Windows10_2004 | 
| (自6.3以来) | Windows10_20H2 | 
| (自6.3以来) | Windows10_21H1 | 
| (自6.3以来) | Windows10_21H2 | 
| (自6.3以来) | Windows11 | 
新 QML 类型
新 QML 属性
QML 类型 Bar3DSeries
| (自6.3以来) | rowColors : 列表 | 
QML 类型 Bars3D
| (自6.3以来) | barSeriesMargin : 大小 | 
QML 类型 FileInstancing
| (自6.3以来) | instanceCount : 整数 | 
QML 类型 HeightMapSurfaceDataProxy
| (自6.3以来) | autoScaleY : 实数 | 
| (自6.3以来) | maxYValue : 实数 | 
| (自6.3以来) | minYValue : 实数 | 
QML 类型 HoverHandler
| (自6.3以来) | blocking : 布尔型 | 
QML 类型 InstanceList
| (自6.3以来) | instanceCount : 整数 | 
QML 类型 ParticleSystem3DLogging
| (自6.3以来) | timeDeviation : 实数 | 
QML 类型 SpriteParticle3D
QML 类型 Surface3DSeries
| (自6.3以来) | wireframeColor : 颜色 | 
QML 类型 TextMetrics
| (自6.3以来) | renderType : 枚举类型 | 
QML 类型 WheelHandler
| (自6.3以来) | blocking : 布尔型 | 
新的 QML 方法
QML 类型 AbstractGraph3D
| (自 6.3)bool | hasSeries(Abstract3DSeries 系列) | 
QML 类型 Instancing
| (自 6.3)颜色 | instanceColor(int 索引) | 
| (自 6.3)vector3d | instanceCustomData(int 索引) | 
| (自 6.3)vector3d | instancePosition(int 索引) | 
| (自 6.3)quaternion | instanceRotation(int 索引) | 
| (自 6.3)vector3d | instanceScale(int 索引) | 
QML 类型 Item
| (自6.3以来) | dumpItemTree() | 
QML 类型 TestCase
| (自6.3以来) | failOnWarning(信息) | 
© 2024 The Qt Company Ltd. 本文件中的文档贡献归其各自所有者所有。提供的文档受 GNU 自由文档许可证版本 1.3 的条款约束,由自由软件基金会发布。Qt 及其标志是 The Qt Company Ltd. 在芬兰及/或其他国家的商标。所有其他商标属于其各自所有者。