Qt 6.0 中的新类和函数

本节提供了 Qt 6.0 中所有新引入的类和函数的完整列表。

新命名空间

(自 6.0) 命名空间QNativeInterface
(自 6.0) 命名空间QQuickOpenGLUtils

新类

新成员函数

QAbstractItemModel

(自6.0) virtual boolclearItemData(const QModelIndex &index)
(自6.0) virtual voidmultiData(const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const

QAbstractItemView

(自6.0) virtual voidinitViewItemOption(QStyleOptionViewItem *option) const
(自6.0) virtual QAbstractItemDelegate *itemDelegateForIndex(const QModelIndex &index) const

QAbstractProxyModel

(自6.0) virtual boolclearItemData(const QModelIndex &index) override

QAction

(自6.0) QList<QObject *>associatedObjects() const

QBitArray

(自6.0) quint32toUInt32(QSysInfo::Endian endianness, bool *ok) const

QBitmap

(自6.0) QBitmapfromPixmap(const QPixmap &pixmap)

QBluetoothDeviceInfo

(自6.0) QList<QBluetoothUuid>serviceUuids() const

QByteArray

(自6.0) intcompare(QByteArrayView bv, Qt::CaseSensitivity cs) const
(自6.0) boolcontains(QByteArrayView bv) const
(自6.0) qsizetypecount(QByteArrayView bv) const
(自6.0) boolendsWith(QByteArrayView bv) const
(自6.0) QByteArrayfirst(qsizetype n) const &
(自6.0) QByteArrayfirst(qsizetype n) &&
(自6.0) qsizetypeindexOf(QByteArrayView bv, qsizetype from) const
(自6.0) QByteArray &insert(qsizetype i, QByteArrayView data)
(自6.0) QByteArraylast(qsizetype n) const &
(自6.0) QByteArraylast(qsizetype n) &&
(自6.0) qsizetypelastIndexOf(QByteArrayView bv, qsizetype from) const
(自6.0) voidpush_back(QByteArrayView str)
(自6.0) voidpush_front(QByteArrayView str)
(自6.0) QByteArray &replace(QByteArrayView before, QByteArrayView after)
(自6.0) QByteArraysliced(qsizetype pos, qsizetype n) const &
(自6.0) QByteArraysliced(qsizetype pos) const &
(自6.0) QByteArraysliced(qsizetype pos) &&
(自6.0) QByteArraysliced(qsizetype pos, qsizetype n) &&
(自6.0) boolstartsWith(QByteArrayView bv) const

QCanBusDeviceInfo

(自6.0) QStringalias() const

QChar

(自6.0) QCharfromUcs2(char16_t c)
(since 6.0) RfromUcs4(char32_t c)

QDataStream

(since 6.0) QDataStream &operator<<(char16_t c)
(since 6.0) QDataStream &operator<<(char32_t c)
(since 6.0) QDataStream &operator>>(char16_t &c)
(since 6.0) QDataStream &operator>>(char32_t &c)

QDate

(since 6.0) QDatefromString(QStringView string, Qt::DateFormat format)
(since 6.0) QDatefromString(QStringView string, QStringView format, QCalendar cal)
(since 6.0) QDatefromString(const QString &string, QStringView format, QCalendar cal)
(since 6.0) QDatefromString(const QString &string, QStringView format, int baseYear, QCalendar cal)

QDateTime

(since 6.0) QDateTimefromString(QStringView string, Qt::DateFormat format)
(since 6.0) QDateTimefromString(QStringView string, QStringView format, QCalendar cal)
(since 6.0) QDateTimefromString(const QString &string, QStringView format, QCalendar cal)
(since 6.0) QDateTimefromString(const QString &string, QStringView format, int baseYear, QCalendar cal)

QDebug

(since 6.0) QDebug &operator<<(const char16_t *t)
(since 6.0) QDebug &operator<<(QUtf8StringView s)
(since 6.0) QDebug &operator<<(QByteArrayView t)
(自6.0) QStringtoString(T &&object)

QDir

(自6.0) voidaddSearchPath(const QString &prefix, const std::filesystem::path &path)
(since 6.0) std::filesystem::pathfilesystemAbsolutePath() const
(since 6.0) std::filesystem::pathfilesystemCanonicalPath() const
(since 6.0) std::filesystem::pathfilesystemPath() const
(自6.0) voidsetPath(const std::filesystem::path &path)

QDropEvent

(since 6.0) Qt::MouseButtonsbuttons() const
(since 6.0) Qt::KeyboardModifiersmodifiers() const
(since 6.0) QPointFposition() const

QEvent

(since 6.0) virtual QEvent *clone() const
(自6.0) boolisInputEvent() const
(自6.0) boolisPointerEvent() const
(自6.0) boolisSinglePointEvent() const

QExplicitlySharedDataPointer

(since 6.0) T *get() const
(自6.0) voidreset(T *ptr)

QFile

(自6.0) boolcopy(const std::filesystem::path &newName)
(since 6.0) std::filesystem::pathfilesystemFileName() const
(自6.0) boollink(const std::filesystem::path &newName)
(since 6.0) QFileDevice::Permissionspermissions(const std::filesystem::path &filename)
(自6.0) boolrename(const std::filesystem::path &newName)
(自6.0) voidsetFileName(const std::filesystem::path &name)
(自6.0) boolsetPermissions(const std::filesystem::path &filename, QFileDevice::Permissions permissionSpec)

QFileInfo

(since 6.0) std::filesystem::pathfilesystemAbsoluteFilePath() const
(since 6.0) std::filesystem::pathfilesystemAbsolutePath() const
(since 6.0) std::filesystem::pathfilesystemCanonicalFilePath() const
(since 6.0) std::filesystem::pathfilesystemCanonicalPath() const
(since 6.0) std::filesystem::pathfilesystemFilePath() const
(since 6.0) std::filesystem::pathfilesystemPath() const
(since 6.0) std::filesystem::pathfilesystemSymLinkTarget() const
(自6.0) voidsetFile(const std::filesystem::path &path)
(自6.0) voidstat()

QFuture

(自6.0) boolisSuspended() const
(自6.0) boolisSuspending() const
(自6.0) boolisValid() const
(since 6.0) QFutureonCanceled(Function &&handler)
(since 6.0) QFutureonFailed(Function &&handler)
(自6.0) voidsetSuspended(bool suspend)
(自6.0) voidSuspend()
(since 6.0) TtakeResult()
(since 6.0) QFuture::ResultType>then(Function &&function)
(since 6.0) QFuture::ResultType>then(QtFuture::Launch policy, Function &&function)
(since 6.0) QFuture::ResultType>then(QThreadPool *pool, Function &&function)
(自6.0) voidtoggleSuspended()

QFutureWatcher

(自6.0) boolisSuspended() const
(自6.0) boolisSuspending() const
(自6.0) voidsetSuspended(bool suspend)
(自6.0) voidSuspend()
(自6.0) voidSuspended()
(自6.0) voidSuspending()
(自6.0) voidtoggleSuspended()

QGraphicsLayoutItem

(自6.0) virtual boolisEmpty() const

QHash

(since 6.0) size_tqHashMulti(size_t seed, const T &... args)
(since 6.0) size_tqHashMultiCommutative(size_t seed, const T &... args)

QHeaderView

(自6.0) virtual voidinitStyleOptionForIndex(QStyleOptionHeader *option, int logicalIndex) const

QIODevice

(since 6.0) virtual qint64skipData(qint64 maxSize)

QIcon

(since 6.0) QPixmappixmap(const QSize &size, qreal devicePixelRatio, QIcon::Mode mode, QIcon::State state) const

QImage

(since 6.0) QImageconvertedTo(QImage::Format format, Qt::ImageConversionFlags flags) const &
(since 6.0) QImageconvertedTo(QImage::Format format, Qt::ImageConversionFlags flags) &&
(since 6.0) QImagefromHBITMAP(HBITMAP hbitmap)
(since 6.0) QImagefromHICON(HICON icon)
(自6.0) voidmirror(bool horizontal, bool vertical)
(自6.0) voidrgbSwap()
(自 6.0) HBITMAPtoHBITMAP() const
(自 6.0) HICONtoHICON(const QImage &mask) const

QImageIOHandler

(自6.0) boolallocateImage(QSize size, QImage::Format format, QImage *image)

QImageReader

(自6.0) int分配限制()
(自6.0) voidsetAllocationLimit(int mbLimit)

QInputEvent

(自 6.0) const QInputDevice *device() const

QJsonValue

(自 6.0) qint64toInteger(qint64 defaultValue) const

QKeyEvent

(自 6.0) QKeyCombinationkeyCombination() const

QLabel

(自 6.0) QPicturepicture() const

QLatin1StringView

(自 6.0) QLatin1StringViewfirst(qsizetype n) const
(自 6.0) QLatin1StringViewlast(qsizetype n) const
(自 6.0) QLatin1StringViewsliced(qsizetype pos) const
(自 6.0) QLatin1StringViewsliced(qsizetype pos, qsizetype n) const
(自6.0) QStringtoString() const
(自 6.0) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...))tokenize(Needle &&sep, Flags... flags) const

QLibraryInfo

(自6.0) QStringpath(QLibraryInfo::LibraryPath p)

QList

(自6.0) voidappend(QList<T> &&value)
(自 6.0) QList<T>first(qsizetype n) const
(自 6.0) QList<T>last(qsizetype n) const
(自 6.0) QList<T> &operator+=(QList<T> &&other)
(自 6.0) QList<T> &operator<<(QList<T> &&other)
(自6.0) voidresize(qsizetype size)
(自6.0) voidresize(qsizetype size, QList<T>::parameter_type c)
(自 6.0) QList<T>sliced(qsizetype pos, qsizetype n) const
(自 6.0) QList<T>sliced(qsizetype pos) const

QLocale

(自6.0) QStringquoteString(QStringView str, QLocale::QuotationStyle style) const

QMap

(自 6.0) QMap<;Key,T>::iteratorerase(QMap<Key, T>::const_iterator first, QMap<Key, T>::const_iterator last)
(自 6.0) std::map<Key, T>toStdMap() &&

QMargins

(自 6.0) QMarginsoperator|(const QMargins &m1, const QMargins &m2)

QMarginsF

(自 6.0) QMarginsFoperator|(const QMarginsF &m1, const QMarginsF &m2)

QMetaMethod

(自 6.0 开始) QMetaTypeparameterMetaType(int index) const
(自6.0) QByteArrayparameterTypeName(int index) const
(自6.0) intrelativeMethodIndex() const
(自 6.0 开始) QMetaTypereturnMetaType() const

QMetaProperty

(自 6.0 开始) QUntypedBindablebindable(QObject *object) const
(自6.0) boolisBindable() const
(自 6.0 开始) QMetaTypemetaType() const
(自6.0) inttypeId() const

QMetaSequence

(自 6.0 开始) QMetaSequencefromContainer()

QMetaType

(自6.0) qsizetypealignOf() const
(自 6.0 开始) QPartialOrderingcompare(const void *lhs, const void *rhs) const
(自6.0) boolequals(const void *lhs, const void *rhs) const
(自6.0) boolhasRegisteredDebugStreamOperator() const
(自6.0) boolhasRegisteredMutableViewFunction()
(自6.0) boolregisterMutableView(To (From::*)() function)
(自6.0) boolregisterMutableView(UnaryFunction function)
(自6.0) boolview(QMetaType fromType, void *from, QMetaType toType, void *to)

QModbusReply

(自 6.0 开始) QList<QModbusDevice::IntermediateError>intermediateErrors() const

QModelIndex

(自6.0) voidmultiData(QModelRoleDataSpan roleDataSpan) const

QMultiHash

(自 6.0 开始) QMultiHash<Key, T> &unite(const QHash<Key, T> &other)

QMultiMap

(自 6.0 开始) QMultiMap<Key, T>::iteratorerase(QMultiMap<Key, T>::const_iterator first, QMultiMap<Key, T>::const_iterator last)

QSGD3D11Texture

(自 6.0 开始) QSGTexture *fromNative(void *texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

QSGMetalTexture

(自 6.0 开始) QSGTexture *fromNative(int texture, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

QSGOpenGLTexture

(自 6.0 开始) QSGTexture *fromNative(GLuint textureId, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

QSGVulkanTexture

(自 6.0 开始) QSGTexture *fromNative(VkImage image, VkImageLayout layout, QQuickWindow *window, const QSize &size, QQuickWindow::CreateTextureOptions options)

QPagedPaintDevice

(自 6.0 开始) QPageRangespageRanges() const
(自6.0) virtual voidsetPageRanges(const QPageRanges &ranges)

QPersistentModelIndex

(自6.0) voidmultiData(QModelRoleDataSpan roleDataSpan) const

QPointer

(since 6.0) T *get() const

QProcess

(since 6.0) std::function<void ()>childProcessModifier() const
(自6.0) voidsetChildProcessModifier(const std::function<void ()> &modifier)
(自6.0) voidstartCommand(const QString &command, QIODeviceBase::OpenMode mode)

QQmlApplicationEngine

(自6.0) voidsetExtraFileSelectors(const QStringList &extraFileSelectors)

QQmlExtensionPlugin

(自6.0) virtual voidunregisterTypes()

QQuickItem

(自6.0) virtual voidgeometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)

QQuickRenderControl

(自6.0) voidbeginFrame()
(自6.0) voidendFrame()
(自6.0) boolinitialize()
(自6.0) intsamples() const
(自6.0) voidsetSamples(int sampleCount)
(since 6.0) QQuickWindow *window() const

QQuickWindow

(自6.0) voidafterFrameEnd()
(自6.0) voidbeforeFrameBegin()
(since 6.0) QSGRendererInterface::GraphicsApigraphicsApi()
(since 6.0) QQuickGraphicsConfigurationgraphicsConfiguration() const
(since 6.0) QQuickGraphicsDevicegraphicsDevice() const
(since 6.0) QQuickRenderTargetrenderTarget() const
(自6.0) voidsetGraphicsApi(QSGRendererInterface::GraphicsApi api)
(自6.0) voidsetGraphicsConfiguration(const QQuickGraphicsConfiguration &config)
(自6.0) voidsetGraphicsDevice(const QQuickGraphicsDevice &device)
(自6.0) voidsetRenderTarget(const QQuickRenderTarget &target)

QRect

(since 6.0) QRectspan(const QPoint &p1, const QPoint &p2)

QRegion

(since 6.0) QRegionfromHRGN(HRGN hrgn)
(since 6.0) HRGNtoHRGN() const

QRegularExpression

(since 6.0) QRegularExpressionfromWildcard(QStringView pattern, Qt::CaseSensitivity cs, QRegularExpression::WildcardConversionOptions options)

QSGRenderNode

(自6.0) virtual voidprepare()

QSGTexture

(自6.0) virtual voidcommitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates)
(since 6.0) virtual QRhiTexture *rhiTexture() const

QSharedDataPointer

(since 6.0) T *get()
(since 6.0) const T *get() const
(自6.0) voidreset(T *ptr)
(since 6.0) T *take()

QShortcut

(since 6.0) QList<QKeySequence>keys() const
(自6.0) voidsetKeys(QKeySequence::StandardKey key)
(自6.0) voidsetKeys(const QList<QKeySequence> &keys)

QSortFilterProxyModel

(自6.0) voidautoAcceptChildRowsChanged(bool autoAcceptChildRows)
(自6.0) voidinvalidateColumnsFilter()
(自6.0) voidinvalidateRowsFilter()

QSqlDriver

(since 6.0) virtual intmaximumIdentifierLength(QSqlDriver::IdentifierType type) const

QSqlQuery

(since 6.0) QVariantListboundValues() const

QSslConfiguration

(自6.0) boolhandshakeMustInterruptOnError() const
(自6.0) boolmissingCertificateIsFatal() const
(自6.0) voidsetCiphers(const QString &ciphers)
(自6.0) voidsetHandshakeMustInterruptOnError(bool interrupt)
(自6.0) voidsetMissingCertificateIsFatal(bool cannotRecover)

QSslSocket


QStandardItem

(自6.0) virtual voidmultiData(QModelRoleDataSpan roleDataSpan) const

QString

(since 6.0) QString &append(QStringView v)
(自6.0) qsizetypecount(QStringView str, Qt::CaseSensitivity cs) const
(自6.0) QStringfirst(qsizetype n) const &
(自6.0) QStringfirst(qsizetype n) &&
(自6.0) QStringfromLatin1(QByteArrayView str)
(自6.0) QStringfromLocal8Bit(QByteArrayView str)
(自6.0) QStringfromUtf8(QByteArrayView str)
(自6.0) QStringfromUtf8(const char8_t *str, qsizetype size)
(since 6.0) QString &insert(qsizetype position, QStringView str)
(自6.0) QStringlast(qsizetype n) const &
(自6.0) QStringlast(qsizetype n) &&
(自6.0) intlocaleAwareCompare(QStringView other) const
(自6.0) intlocaleAwareCompare(QStringView s1, QStringView s2)
(since 6.0) QString &operator+=(QStringView str)
(since 6.0) QString &prepend(QStringView str)
(自6.0) QStringsliced(qsizetype pos, qsizetype n) const &
(自6.0) QStringsliced(qsizetype pos) const &
(自6.0) QStringsliced(qsizetype pos) &&
(自6.0) QStringsliced(qsizetype pos, qsizetype n) &&
(自 6.0) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...))tokenize(Needle &&sep, Flags... flags) const &
(since 6.0) decltype(qTokenize(std::move(*this), std::forward<Needle>(needle), flags...))tokenize(Needle &&sep, Flags... flags) const &&
(since 6.0) decltype(qTokenize(std::move(*this), std::forward<Needle>(needle), flags...))tokenize(Needle &&sep, Flags... flags) &&

QStringListModel

(自6.0) virtual boolclearItemData(const QModelIndex &index) override

QStringTokenizer

(since 6.0) decltype(QtPrivate::Tok::TokenizerResult<Haystack, Needle>{std::forward<Haystack>(h), std::forward<Needle>(n), flags...})qTokenize(Haystack &&haystack, Needle &&needle, Flags... flags)

QStringView

(自6.0起) QStringView::const_pointerconstData() const
(自6.0) qsizetypecount(QChar ch, Qt::CaseSensitivity cs) const
(自6.0) qsizetypecount(QStringView str, Qt::CaseSensitivity cs) const
(自6.0起) QStringViewfirst(qsizetype n) const
(自6.0起) QStringViewlast(qsizetype n) const
(自6.0起) QStringViewsliced(qsizetype pos, qsizetype n) const
(自6.0起) QStringViewsliced(qsizetype pos) const
(自6.0起) QListsplit(QStringView sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const
(自6.0起) QListsplit(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const
(自6.0起) QListsplit(const QRegularExpression &re, Qt::SplitBehavior behavior) const
(自6.0起) CFStringReftoCFString() const
(自6.0起) doubletoDouble(bool *ok) const
(自6.0起) floattoFloat(bool *ok) const
(自6.0) inttoInt(bool *ok, int base) const
(自6.0起) longtoLong(bool *ok, int base) const
(自6.0起) qlonglongtoLongLong(bool *ok, int base) const
(自6.0起) NSString *toNSString() const
(自6.0起) shorttoShort(bool *ok, int base) const
(自6.0起) uinttoUInt(bool *ok, int base) const
(自6.0起) ulongtoULong(bool *ok, int base) const
(自6.0起) qulonglongtoULongLong(bool *ok, int base) const
(自6.0起) ushorttoUShort(bool *ok, int base) const
(自 6.0) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...))tokenize(Needle &&sep, Flags... flags) const

QSurfaceFormat

(自6.0) voidsetColorSpace(const QColorSpace &colorSpace)

QTextCharFormat

(自6.0起) qrealbaselineOffset() const
(自6.0) voidsetBaselineOffset(qreal baseline)
(自6.0) voidsetSubScriptBaseline(qreal baseline)
(自6.0) voidsetSuperScriptBaseline(qreal baseline)
(自6.0起) qrealsubScriptBaseline() const
(自6.0起) qrealsuperScriptBaseline() const

QTextDocument

(自6.0起) qrealbaselineOffset() const
(自6.0) voidsetBaselineOffset(qreal baseline)
(自6.0) voidsetSubScriptBaseline(qreal baseline)
(自6.0) voidsetSuperScriptBaseline(qreal baseline)
(自6.0起) qrealsubScriptBaseline() const
(自6.0起) qrealsuperScriptBaseline() const

QThreadPool

(自6.0) boolcontains(const QThread *thread) const

QTime

(since 6.0) QTimefromString(QStringView string, Qt::DateFormat format)
(since 6.0) QTimefromString(QStringView string, QStringView format)
(since 6.0) QTimefromString(const QString &string, QStringView format)

QTypeRevision

(since 6.0) QDataStream &operator<<(QDataStream &out, const QTypeRevision &revision)
(since 6.0) QDataStream &operator>>(QDataStream &in, QTypeRevision &revision)

QUnhandledException

(since 6.0) std::__exception_ptr::exception_ptrexception() const
(自6.0) voidswap(QUnhandledException &other)

QUuid

(since 6.0) size_tqHash(char8_t key, size_t seed)
(since 6.0) size_tqHash(char16_t key, size_t seed)
(since 6.0) size_tqHash(char32_t key, size_t seed)
(since 6.0) size_tqHash(wchar_t key, size_t seed)
(since 6.0) size_tqHash(std::nullptr_t key, size_t seed)
(since 6.0) size_tqHash(QPoint key, size_t seed)
(since 6.0) size_tqHash(const QTypeRevision &key, size_t seed)

QVarLengthArray

(since 6.0) QVarLengthArray<T, Prealloc> &operator=(QVarLengthArray<T, Prealloc> &&other)

QVariant

(自6.0) boolcanConvert(QMetaType type) const
(自 6.0 开始) QPartialOrderingcompare(const QVariant &lhs, const QVariant &rhs)
(自6.0) boolconvert(QMetaType targetType)
(自 6.0 开始) QMetaTypemetaType() const
(since 6.0) QDataStream &operator<<(QDataStream &out, const std::pair<T1, T2> &pair)
(since 6.0) QDataStream &operator>>(QDataStream &in, std::pair<T1, T2> &pair)

QWidget

(since 6.0) QPointFmapFrom(const QWidget *parent, const QPointF &pos) const
(since 6.0) QPointFmapFromGlobal(const QPointF &pos) const
(since 6.0) QPointFmapFromParent(const QPointF &pos) const
(since 6.0) QPointFmapTo(const QWidget *parent, const QPointF &pos) const
(since 6.0) QPointFmapToGlobal(const QPointF &pos) const
(since 6.0) QPointFmapToParent(const QPointF &pos) const

QWindow

(since 6.0) QPointFmapFromGlobal(const QPointF &pos) const
(since 6.0) QPointFmapToGlobal(const QPointF &pos) const
(自6.0) virtual voidpaintEvent(QPaintEvent *ev)

命名空间中的新函数

(自6.0) voidresetOpenGLState()
(since 6.0) QtConcurrent::QTaskBuilder<Task>task(Task &&task)

新全局函数

(自6.0起) long doubleqDegreesToRadians(long double degrees)
(自6.0起) long doubleqRadiansToDegrees(long double radians)

新宏

(自6.0起) QT_IMPLICIT_QCHAR_CONSTRUCTION
(自6.0起) QT_IMPLICIT_QFILEINFO_CONSTRUCTION
(自6.0起) QT_NO_FOREACH
(自6.0起) Q_MOC_INCLUDE
(自6.0起) Q_OBJECT_BINDABLE_PROPERTY(containingClass, type, name, signal)
(自6.0起) Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(containingClass, type, name, initialvalue, signal)
(自6.0起) Q_OBJECT_COMPUTED_PROPERTY(containingClass, type, name, callback)

新枚举类型

(自6.0起) enumIntermediateError { ResponseCrcError, ResponseRequestMismatch }
(自6.0起) enumWildcardConversionOption { DefaultWildcardConversion, UnanchoredWildcardConversion, NonPathWildcardConversion }
(自6.0起) enum classAlertLevel { Warning, Fatal, Unknown }
(自6.0起) enum classAlertType { CloseNotify, UnexpectedMessage, BadRecordMac, RecordOverflow, DecompressionFailure, …, UnknownAlertMessage }
(自6.0起) enum classLaunch { Sync, Async, Inherit }

新枚举值

新类型别名

(自6.0起) iterator
(自6.0起) QPair
(自6.0起) iterator

新属性

新变量

(自6.0起) MacOSBigSur

新QML类型

新QML属性

QML类型 FontLoader

(自6.0起) font : font

QML类型 GeometryRenderer

(自6.0起) sortIndex : float

QML类型 Item

(自6.0起) palette : Palette

QML类型 SceneEnvironment

(自6.0起) tonemapMode : enumeration

QML类型 Text

(自6.0起) renderTypeQuality : int

QML类型 WaylandCompositor

(自6.0起) additionalShmFormats : 列表<枚举>

QML 类型 Window

(自6.0起) palette : Palette

© 2024 Qt 公司。本文件中的文档贡献均为各自所有者的版权。本文件中的文档是根据自由软件基金会发布的 GNU 免费文档许可协议版本 1.3 许可的。Qt 及相关标志是芬兰和/或其他全球国家的 Qt 公司的商标。所有其他商标均为各自所有者的财产。