Qt 6.3 中的新类和函数
本页包含 Qt 6.3 中引入的所有新类和函数的综合列表。
新类
新成员函数
(since 6.3) bool | hasSeries(QAbstract3DSeries *series) const |
(since 6.3) QMultiHash<QBluetoothUuid, QByteArray> | serviceData() const |
(since 6.3) QByteArray | serviceData(const QBluetoothUuid &serviceId) const |
(since 6.3) QList<QBluetoothUuid> | serviceIds() const |
(since 6.3) bool | setServiceData(const QBluetoothUuid &serviceId, const QByteArray &data) |
类QByteArray :
(since 6.3) bool | isValidUtf8() const |
(since 6.3) QByteArray | join(QByteArrayView separator) const |
(since 6.3) qsizetype | indexIn(QByteArrayView data, qsizetype from) const |
班级QByteArrayView :
(since 6.3) bool | isValidUtf8() const |
(since 6.3) double | toDouble(bool *ok) const |
(since 6.3) float | toFloat(bool *ok) const |
(since 6.3) int | toInt(bool *ok, int base) const |
(since 6.3) long | toLong(bool *ok, int base) const |
(since 6.3) qlonglong | toLongLong(bool *ok, int base) const |
(since 6.3) short | toShort(bool *ok, int base) const |
(since 6.3) uint | toUInt(bool *ok, int base) const |
(since 6.3) ulong | toULong(bool *ok, int base) const |
(since 6.3) qulonglong | toULongLong(bool *ok, int base) const |
(since 6.3) ushort | toUShort(bool *ok, int base) const |
(since 6.3) QByteArrayView | trimmed() const |
班级QCborArray :
(since 6.3) QCborArray | fromJsonArray(QJsonArray &&array) |
班级QCborMap :
(since 6.3) QCborMap | fromJsonObject(QJsonObject &&obj) |
班级QCollator :
(since 6.3) int | defaultCompare(QStringView s1, QStringView s2) |
(since 6.3) QCollatorSortKey | defaultSortKey(QStringView key) |
(since 6.3) QByteArrayView | resultView() const |
班级QDebug :
(since 6.3) QDebug | operator<<(QDebug debug, const QVarLengthArray<T, P> &array) |
班级QDir :
(since 6.3) bool | mkdir(const QString &dirName, QFileDevice::Permissions permissions) const |
班级QDirIterator :
(since 6.3) QFileInfo | nextFileInfo() |
班级QDoubleValidator :
(since 6.3) virtual void | fixup(QString &input) const override |
班级QFile :
(since 6.3) std::filesystem::path | filesystemSymLinkTarget() const |
(since 6.3) std::filesystem::path | filesystemSymLinkTarget(const std::filesystem::path &fileName) |
(since 6.3) bool | open(QIODeviceBase::OpenMode mode, QFileDevice::Permissions permissions) |
班级QFontComboBox :
(since 6.3) std::optional<QFont> | displayFont(const QString &fontFamily) const |
(since 6.3) QString | sampleTextForFont(const QString &fontFamily) const |
(since 6.3) QString | sampleTextForSystem(QFontDatabase::WritingSystem writingSystem) const |
(since 6.3) void | setDisplayFont(const QString &fontFamily, const QFont &font) |
(since 6.3) void | setSampleTextForFont(const QString &fontFamily, const QString &sampleText) |
(since 6.3) void | setSampleTextForSystem(QFontDatabase::WritingSystem writingSystem, const QString &sampleText) |
班级QFontMetrics :
(since 6.3) QRect | boundingRect(const QString &text, const QTextOption &option) const |
(since 6.3) int | horizontalAdvance(const QString &text, const QTextOption &option) const |
(since 6.3) QRect | tightBoundingRect(const QString &text, const QTextOption &option) const |
班级QFontMetricsF :
(since 6.3) QRectF | boundingRect(const QString &text, const QTextOption &option) const |
(since 6.3) qreal | horizontalAdvance(const QString &text, const QTextOption &option) const |
(since 6.3) QRectF | tightBoundingRect(const QString &text, const QTextOption &option) const |
班级QInputDevice :
(since 6.3) QStringList | seatNames() |
(since 6.3) qsizetype | lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const |
班级QLocalServer :
(since 6.3) int | listenBacklogSize() const |
(since 6.3) void | setListenBacklogSize(int size) |
班级QLocale :
(since 6.3) QLocale::Language | codeToLanguage(QStringView languageCode, QLocale::LanguageCodeTypes codeTypes) |
(since 6.3) QString | languageToCode(QLocale::Language language, QLocale::LanguageCodeTypes codeTypes) |
班级QEGLContext :
(since 6.3) bool | loadDefaultBackend() |
(since 6.3) QNetworkInformation::Features | supportedFeatures() const |
班级QNetworkReply :
(since 6.3) void | requestSent() |
(since 6.3) void | socketStartedConnecting() |
班级QObject :
(since 6.3) QList<T> | findChildren(Qt::FindChildOptions options) const |
班级QOpcUaClient :
(since 6.3) QOpcUaHistoryReadResponse * | readHistoryData(const QOpcUaHistoryReadRawRequest &request) |
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaLocalizedText &text) |
班级QOpcUaNode :
(since 6.3) QOpcUaHistoryReadResponse * | readHistoryRaw(const QDateTime &startTime, const QDateTime &endTime, quint32 numValues, bool returnBounds) |
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaQualifiedName &name) |
(since 6.3) bool | inheritsFromParent() const |
班级QQuickItem :
(since 6.3) void | dumpItemTree() const |
(since 6.3) void | ensurePolished() |
(since 6.3) qreal | devicePixelRatio() const |
(since 6.3) void | setDevicePixelRatio(qreal ratio) |
(since 6.3) bool | hasCaptured(QAnyStringView name) const |
(since 6.3) bool | hasCaptured(int nth) const |
班级QSemaphore :
(since 6.3) bool | tryAcquire(int n, std::chrono::duration<Rep, Period> timeout) |
(since 6.3) bool | try_acquire() |
(since 6.3) bool | try_acquire_for(const std::chrono::duration<Rep, Period> &timeout) |
(since 6.3) bool | try_acquire_until(const std::chrono::time_point<Clock, Duration> &tp) |
班级QString :
(since 6.3) qsizetype | lastIndexOf(QChar ch, Qt::CaseSensitivity cs) const |
班级QStringView :
(since 6.3) qsizetype | lastIndexOf(QChar c, Qt::CaseSensitivity cs) const |
班级QTableWidgetSelectionRange :
(since 6.3) bool | operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
(since 6.3) bool | operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
班级QTcpServer :
(since 6.3) int | listenBacklogSize() const |
(since 6.3) void | setListenBacklogSize(int size) |
班级QThreadPool :
(since 6.3) void | startOnReservedThread(QRunnable *runnable) |
(since 6.3) void | startOnReservedThread(Callable &&callableToRun) |
班级QUrl :
(since 6.3) QString | fromAce(const QByteArray &domain, QUrl::AceProcessingOptions options) |
(since 6.3) QByteArray | toAce(const QString &domain, QUrl::AceProcessingOptions options) |
班级QUtf8StringView :
(since 6.3) bool | isValidUtf8() const |
(since 6.3) QVarLengthArray<T, Prealloc>::iterator | emplace(QVarLengthArray<T,Prealloc>::const_iteratorpos, 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 QKeySequence &shortcut) |
(since 6.3) QAction * | addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut) |
(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, Args &&... args) |
(since 6.3) QAction * | addAction(const QIcon &icon, const QString &text, const QKeySequence &shortcut, Args &&... args) |
(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, 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) void | failOnWarning(const char *message) |
(since 6.3) void | failOnWarning(const QRegularExpression &messagePattern) |
(since 6.3) QFuture<OutputSequence> | whenAll(InputIt first, InputIt last) |
(since 6.3) QFuture<OutputSequence> | whenAll(Futures &&... futures) |
(since 6.3) QFuture<QtFuture::WhenAnyResult<T>> | whenAny(InputIt first, InputIt last) |
(since 6.3) QFuture<std::variant<std::decay_t<Futures>...>> | whenAny(Futures &&... futures) |
新全局函数
(since 6.3) const char * | qWebEngineChromiumSecurityPatchVersion() |
新宏
(since 6.3) | QT_TRID_N_NOOP(id) |
(since 6.3) | QVERIFY_THROWS_EXCEPTION(exceptiontype, ...) |
(since 6.3) | QVERIFY_THROWS_NO_EXCEPTION(...) |
(since 6.3) | Q_APPLICATION_STATIC(Type, VariableName, ...) |
(since 6.3) | Q_GADGET_EXPORT(EXPORT_MACRO) |
新枚举类型
(since 6.3) enum class | TransportMedium { Unknown, Ethernet, Cellular, WiFi, Bluetooth } |
(since 6.3) enum | Initialization { InheritFromParent } |
(since 6.3) enum | AceProcessingOption { IgnoreIDNWhitelist, AceTransitionalProcessing } |
新枚举值
enum value | Language::Kaingang |
enum value | Language::Nheengatu |
enum value | PixelMetric::PM_LineEditIconMargin |
enum value | Script::Script_CyproMinoan |
enum value | Script::Script_NagMundari |
enum value | Script::Script_OldUyghur |
enum value | Script::Script_Tangsa |
enum value | Script::Script_Toto |
enum value | Script::Script_Vithkuqi |
enum value | StandardPixmap::SP_TabCloseButton |
enum value | StyleHint::SH_SpinBox_SelectOnStep |
enum value | UnicodeVersion::Unicode_14_0 |
新属性
|
|
新变量
(since 6.3) | MacOSMonterey |
(since 6.3) | Windows10_1809 |
(since 6.3) | Windows10_1903 |
(since 6.3) | Windows10_1909 |
(since 6.3) | Windows10_2004 |
(since 6.3) | Windows10_20H2 |
(since 6.3) | Windows10_21H1 |
(since 6.3) | Windows10_21H2 |
(since 6.3) | Windows11 |
新 QML 类型
新 QML 属性
QML 类型Bar3DSeries :
(since 6.3) | rowColors : list<ThemeColor> |
QML 类型Bars3D :
(since 6.3) | barSeriesMargin : size |
QML 类型FileInstancing :
(since 6.3) | instanceCount : int |
QML 类型HeightMapSurfaceDataProxy :
(since 6.3) | autoScaleY : real |
(since 6.3) | maxYValue : real |
(since 6.3) | minYValue : real |
QML 类型HoverHandler :
(since 6.3) | blocking : bool |
QML 类型InstanceList :
(since 6.3) | instanceCount : int |
QML 类型ParticleSystem3DLogging :
(since 6.3) | timeDeviation : real |
QML 类型SpriteParticle3D :
QML 类型Surface3DSeries :
(since 6.3) | wireframeColor : color |
QML 类型TextMetrics :
(since 6.3) | renderType : enumeration |
QML 类型WheelHandler :
(since 6.3) | blocking : bool |
新的 QML 方法
QML 类型AbstractGraph3D :
(since 6.3) bool | hasSeries(Abstract3DSeries series) |
QML 类型Instancing :
(since 6.3) color | instanceColor(int index) |
(since 6.3) vector3d | instanceCustomData(int index) |
(since 6.3) vector3d | instancePosition(int index) |
(since 6.3) quaternion | instanceRotation(int index) |
(since 6.3) vector3d | instanceScale(int index) |
QML 类型Item :
(since 6.3) | dumpItemTree() |
QML 类型TestCase :
(since 6.3) | failOnWarning(message) |
© 2025 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.