Qt 6.0 中的新类和函数

The section provides a comprehensive list of all new classes and functions introduced in Qt 6.0.

新名称空间

(从 6.0 起) namespace QNativeInterface
(从 6.0 起) namespace QQuickOpenGLUtils

新类

A
QAbstractFileIconProvider
QAction
QActionGroup
QAdoptSharedDataTag
QAndroidOffscreenSurface ( QNativeInterface )
QAnyStringView
QAxBaseObject
QAxBaseWidget
QAxObjectInterface
B
QBoundingVolume ( Qt3DCore )
QByteArrayView
C
QCocoaGLContext ( QNativeInterface )
QConstIterator
QCoreSettings ( Qt3DCore )
E
QEGLContext ( QNativeInterface )
QEventPoint
G
QGeometryView ( Qt3DCore )
QGLXContext ( QNativeInterface )
I
QInputDevice
QIterable
QIterator
K
QKeyCombination
M
QMetaSequence
QModelRoleData
QModelRoleDataSpan
O
QObjectBindableProperty
QObjectComputedProperty
QOpenGLVersionFunctionsFactory
P
QPageRanges
QPartialOrdering
QPickingProxy ( Qt3DRender )
QPointerEvent
QPointingDevice
QPromise
QProperty
QPropertyBindingError
QPropertyData
Q
QQuick3DTextureData
QQuickGraphicsConfiguration
QQuickGraphicsDevice
QQuickRenderTarget
S
QSGD3D11Texture ( QNativeInterface )
QSGMetalTexture ( QNativeInterface )
QSGOpenGLTexture ( QNativeInterface )
QSGVulkanTexture ( QNativeInterface )
QSinglePointEvent
QStringTokenizer
T
QTaggedIterator
QTaskBuilder ( QtConcurrent )
QTypeRevision
U
QUntypedBindable
QUtf8StringView
V
QVariantConstPointer
QVariantPointer
QVariantRef
W
QWaylandQtTextInputMethodManager
QWGLContext ( QNativeInterface )

新成员函数

QAbstractItemModel :

(从 6.0 起) virtual bool clearItemData (const QModelIndex & index )
(从 6.0 起) virtual void multiData (const QModelIndex & index , QModelRoleDataSpan roleDataSpan ) const

QAbstractItemView :

(从 6.0 起) virtual void initViewItemOption (QStyleOptionViewItem * option ) const
(从 6.0 起) virtual QAbstractItemDelegate * itemDelegateForIndex (const QModelIndex & index ) const

QAbstractProxyModel :

(从 6.0 起) virtual bool clearItemData (const QModelIndex & index ) override

QAction :

(从 6.0 起) QList<QObject *> associatedObjects () const

QBitArray :

(从 6.0 起) quint32 toUInt32 (QSysInfo::Endian endianness , bool * ok ) const

QBitmap :

(从 6.0 起) QBitmap fromPixmap (const QPixmap & pixmap )

QBluetoothDeviceInfo :

(从 6.0 起) QList<QBluetoothUuid> serviceUuids () const

QByteArray :

(从 6.0 起) int compare (QByteArrayView bv , Qt::CaseSensitivity cs ) const
(从 6.0 起) bool contains (QByteArrayView bv ) const
(从 6.0 起) qsizetype count (QByteArrayView bv ) const
(从 6.0 起) bool endsWith (QByteArrayView bv ) const
(从 6.0 起) QByteArray first (qsizetype n ) const &
(从 6.0 起) QByteArray first (qsizetype n ) &&
(从 6.0 起) qsizetype indexOf (QByteArrayView bv , qsizetype from ) const
(从 6.0 起) QByteArray & insert (qsizetype i , QByteArrayView data )
(从 6.0 起) QByteArray last (qsizetype n ) const &
(从 6.0 起) QByteArray last (qsizetype n ) &&
(从 6.0 起) qsizetype lastIndexOf (QByteArrayView bv , qsizetype from ) const
(从 6.0 起) void push_back (QByteArrayView str )
(从 6.0 起) void push_front (QByteArrayView str )
(从 6.0 起) QByteArray & replace (QByteArrayView before , QByteArrayView after )
(从 6.0 起) QByteArray sliced (qsizetype pos , qsizetype n ) const &
(从 6.0 起) QByteArray sliced (qsizetype pos ) const &
(从 6.0 起) QByteArray sliced (qsizetype pos ) &&
(从 6.0 起) QByteArray sliced (qsizetype pos , qsizetype n ) &&
(从 6.0 起) bool startsWith (QByteArrayView bv ) const

QCanBusDeviceInfo :

(从 6.0 起) QString alias () const

QChar :

(从 6.0 起) QChar fromUcs2 (char16_t c )
(从 6.0 起) R fromUcs4 (char32_t c )

QDataStream :

(从 6.0 起) QDataStream & operator<< (char16_t c )
(从 6.0 起) QDataStream & operator<< (char32_t c )
(从 6.0 起) QDataStream & operator>> (char16_t & c )
(从 6.0 起) QDataStream & operator>> (char32_t & c )

QDate :

(从 6.0 起) QDate fromString (QStringView string , Qt::DateFormat format )
(从 6.0 起) QDate fromString (QStringView string , QStringView format , QCalendar cal )
(从 6.0 起) QDate fromString (const QString & string , QStringView format , QCalendar cal )
(从 6.0 起) QDate fromString (const QString & string , QStringView format , int baseYear , QCalendar cal )

QDateTime :

(从 6.0 起) QDateTime fromString (QStringView string , Qt::DateFormat format )
(从 6.0 起) QDateTime fromString (QStringView string , QStringView format , QCalendar cal )
(从 6.0 起) QDateTime fromString (const QString & string , QStringView format , QCalendar cal )
(从 6.0 起) QDateTime fromString (const QString & string , QStringView format , int baseYear , QCalendar cal )

QDebug :

(从 6.0 起) QDebug & operator<< (const char16_t * t )
(从 6.0 起) QDebug & operator<< (QUtf8StringView s )
(从 6.0 起) QDebug & operator<< (QByteArrayView t )
(从 6.0 起) QString toString (T && object )

QDir :

(从 6.0 起) void addSearchPath (const QString & prefix , const std::filesystem::path & path )
(从 6.0 起) std::filesystem::path filesystemAbsolutePath () const
(从 6.0 起) std::filesystem::path filesystemCanonicalPath () const
(从 6.0 起) std::filesystem::path filesystemPath () const
(从 6.0 起) void setPath (const std::filesystem::path & path )

QDropEvent :

(从 6.0 起) Qt::MouseButtons buttons () const
(从 6.0 起) Qt::KeyboardModifiers modifiers () const
(从 6.0 起) QPointF position () const

QEvent :

(从 6.0 起) virtual QEvent * clone () const
(从 6.0 起) bool isInputEvent () const
(从 6.0 起) bool isPointerEvent () const
(从 6.0 起) bool isSinglePointEvent () const

QExplicitlySharedDataPointer :

(从 6.0 起) T * get () const
(从 6.0 起) void reset (T * ptr )

QFile :

(从 6.0 起) bool copy (const std::filesystem::path & newName )
(从 6.0 起) std::filesystem::path filesystemFileName () const
(从 6.0 起) bool link (const std::filesystem::path & newName )
(从 6.0 起) QFileDevice::Permissions permissions (const std::filesystem::path & filename )
(从 6.0 起) bool rename (const std::filesystem::path & newName )
(从 6.0 起) void setFileName (const std::filesystem::path & name )
(从 6.0 起) bool setPermissions (const std::filesystem::path & filename , QFileDevice::Permissions permissionSpec )

QFileInfo :

(从 6.0 起) std::filesystem::path filesystemAbsoluteFilePath () const
(从 6.0 起) std::filesystem::path filesystemAbsolutePath () const
(从 6.0 起) std::filesystem::path filesystemCanonicalFilePath () const
(从 6.0 起) std::filesystem::path filesystemCanonicalPath () const
(从 6.0 起) std::filesystem::path filesystemFilePath () const
(从 6.0 起) std::filesystem::path filesystemPath () const
(从 6.0 起) std::filesystem::path filesystemSymLinkTarget () const
(从 6.0 起) void setFile (const std::filesystem::path & path )
(从 6.0 起) void stat ()

QFuture :

(从 6.0 起) bool isSuspended () const
(从 6.0 起) bool isSuspending () const
(从 6.0 起) bool isValid () const
(从 6.0 起) QFuture<T> onCanceled (Function && handler )
(从 6.0 起) QFuture<T> onFailed (Function && handler )
(从 6.0 起) void setSuspended (bool suspend )
(从 6.0 起) void suspend ()
(从 6.0 起) T takeResult ()
(从 6.0 起) QFuture<QFuture<T>::ResultType<Function>> then (Function && function )
(从 6.0 起) QFuture<QFuture<T>::ResultType<Function>> then (QtFuture::Launch policy , Function && function )
(从 6.0 起) QFuture<QFuture<T>::ResultType<Function>> then (QThreadPool * pool , Function && function )
(从 6.0 起) void toggleSuspended ()

QFutureWatcher :

(从 6.0 起) bool isSuspended () const
(从 6.0 起) bool isSuspending () const
(从 6.0 起) void setSuspended (bool suspend )
(从 6.0 起) void suspend ()
(从 6.0 起) void suspended ()
(从 6.0 起) void suspending ()
(从 6.0 起) void toggleSuspended ()

QGraphicsLayoutItem :

(从 6.0 起) virtual bool isEmpty () const

QHash :

(从 6.0 起) size_t qHashMulti (size_t seed , const T &... args )
(从 6.0 起) size_t qHashMultiCommutative (size_t seed , const T &... args )

QHeaderView :

(从 6.0 起) virtual void initStyleOptionForIndex (QStyleOptionHeader * option , int logicalIndex ) const

QIODevice :

(从 6.0 起) virtual qint64 skipData (qint64 maxSize )

QIcon :

(从 6.0 起) QPixmap pixmap (const QSize & size , qreal devicePixelRatio , QIcon::Mode mode , QIcon::State state ) const

QImage :

(从 6.0 起) QImage convertedTo (QImage::Format format , Qt::ImageConversionFlags flags ) const &
(从 6.0 起) QImage convertedTo (QImage::Format format , Qt::ImageConversionFlags flags ) &&
(从 6.0 起) QImage fromHBITMAP (HBITMAP hbitmap )
(从 6.0 起) QImage fromHICON (HICON icon )
(从 6.0 起) void mirror (bool horizontal , bool vertical )
(从 6.0 起) void rgbSwap ()
(从 6.0 起) HBITMAP toHBITMAP () const
(从 6.0 起) HICON toHICON (const QImage & mask ) const

QImageIOHandler :

(从 6.0 起) bool allocateImage (QSize size , QImage::Format format , QImage * image )

QImageReader :

(从 6.0 起) int allocationLimit ()
(从 6.0 起) void setAllocationLimit (int mbLimit )

QInputEvent :

(从 6.0 起) const QInputDevice * device () const

QJsonValue :

(从 6.0 起) qint64 toInteger (qint64 defaultValue ) const

QKeyEvent :

(从 6.0 起) QKeyCombination keyCombination () const

QLabel :

(从 6.0 起) QPicture picture () const

QLatin1StringView :

(从 6.0 起) QLatin1StringView first (qsizetype n ) const
(从 6.0 起) QLatin1StringView last (qsizetype n ) const
(从 6.0 起) QLatin1StringView sliced (qsizetype pos ) const
(从 6.0 起) QLatin1StringView sliced (qsizetype pos , qsizetype n ) const
(从 6.0 起) QString toString () const
(从 6.0 起) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...)) tokenize (Needle && sep , Flags... flags ) const

QLibraryInfo :

(从 6.0 起) QString path (QLibraryInfo::LibraryPath p )

QList :

(从 6.0 起) void append (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 起) void resize (qsizetype size )
(从 6.0 起) void resize (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 起) QString quoteString (QStringView str , QLocale::QuotationStyle style ) const

QMap :

(从 6.0 起) QMap<Key, T>::iterator erase (QMap<Key, T>::const_iterator first , QMap<Key, T>::const_iterator last )
(从 6.0 起) std::map<Key, T> toStdMap () &&

QMargins :

(从 6.0 起) QMargins operator| (const QMargins & m1 , const QMargins & m2 )

QMarginsF :

(从 6.0 起) QMarginsF operator| (const QMarginsF & m1 , const QMarginsF & m2 )

QMetaMethod :

(从 6.0 起) QMetaType parameterMetaType (int index ) const
(从 6.0 起) QByteArray parameterTypeName (int index ) const
(从 6.0 起) int relativeMethodIndex () const
(从 6.0 起) QMetaType returnMetaType () const

QMetaProperty :

(从 6.0 起) QUntypedBindable bindable (QObject * object ) const
(从 6.0 起) bool isBindable () const
(从 6.0 起) QMetaType metaType () const
(从 6.0 起) int typeId () const

QMetaSequence :

(从 6.0 起) QMetaSequence fromContainer ()

QMetaType :

(从 6.0 起) qsizetype alignOf () const
(从 6.0 起) QPartialOrdering compare (const void * lhs , const void * rhs ) const
(从 6.0 起) bool 等于 (const void * lhs , const void * rhs ) const
(从 6.0 起) bool hasRegisteredDebugStreamOperator () const
(从 6.0 起) bool hasRegisteredMutableViewFunction ()
(从 6.0 起) bool registerMutableView (To (From::*)() function )
(从 6.0 起) bool registerMutableView (UnaryFunction function )
(从 6.0 起) bool view (QMetaType fromType , void * from , QMetaType toType , void * to )

QModbusReply :

(从 6.0 起) QList<QModbusDevice::IntermediateError> intermediateErrors () const

QModelIndex :

(从 6.0 起) void multiData (QModelRoleDataSpan roleDataSpan ) const

QMultiHash :

(从 6.0 起) QMultiHash<Key, T> & unite (const QHash<Key, T> & other )

QMultiMap :

(从 6.0 起) QMultiMap<Key, T>::iterator erase (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 起) QPageRanges pageRanges () const
(从 6.0 起) virtual void setPageRanges (const QPageRanges & ranges )

QPersistentModelIndex :

(从 6.0 起) void multiData (QModelRoleDataSpan roleDataSpan ) const

QPointer :

(从 6.0 起) T * get () const

QProcess :

(从 6.0 起) std::function<void ()> childProcessModifier () const
(从 6.0 起) void setChildProcessModifier (const std::function<void ()> & modifier )
(从 6.0 起) void startCommand (const QString & 命令 , QIODeviceBase::OpenMode mode )

QQmlApplicationEngine :

(从 6.0 起) void setExtraFileSelectors (const QStringList & extraFileSelectors )

QQmlExtensionPlugin :

(从 6.0 起) virtual void unregisterTypes ()

QQuickItem :

(从 6.0 起) virtual void geometryChange (const QRectF & newGeometry , const QRectF & oldGeometry )

QQuickRenderControl :

(从 6.0 起) void beginFrame ()
(从 6.0 起) void endFrame ()
(从 6.0 起) bool initialize ()
(从 6.0 起) int samples () const
(从 6.0 起) void setSamples (int sampleCount )
(从 6.0 起) QQuickWindow * window () const

QQuickWindow :

(从 6.0 起) void afterFrameEnd ()
(从 6.0 起) void beforeFrameBegin ()
(从 6.0 起) QSGRendererInterface::GraphicsApi graphicsApi ()
(从 6.0 起) QQuickGraphicsConfiguration graphicsConfiguration () const
(从 6.0 起) QQuickGraphicsDevice graphicsDevice () const
(从 6.0 起) QQuickRenderTarget renderTarget () const
(从 6.0 起) void setGraphicsApi (QSGRendererInterface::GraphicsApi api )
(从 6.0 起) void setGraphicsConfiguration (const QQuickGraphicsConfiguration & config )
(从 6.0 起) void setGraphicsDevice (const QQuickGraphicsDevice & device )
(从 6.0 起) void setRenderTarget (const QQuickRenderTarget & target )

QRect :

(从 6.0 起) QRect span (const QPoint & p1 , const QPoint & p2 )

QRegion :

(从 6.0 起) QRegion fromHRGN (HRGN hrgn )
(从 6.0 起) HRGN toHRGN () const

QRegularExpression :

(从 6.0 起) QRegularExpression fromWildcard (QStringView pattern , Qt::CaseSensitivity cs , QRegularExpression::WildcardConversionOptions options )

QSGRenderNode :

(从 6.0 起) virtual void prepare ()

QSGTexture :

(从 6.0 起) virtual void commitTextureOperations (QRhi * rhi , QRhiResourceUpdateBatch * resourceUpdates )
(从 6.0 起) virtual QRhiTexture * rhiTexture () const

QSharedDataPointer :

(从 6.0 起) T * get ()
(从 6.0 起) const T * get () const
(从 6.0 起) void reset (T * ptr )
(从 6.0 起) T * take ()

QShortcut :

(从 6.0 起) QList<QKeySequence> keys () const
(从 6.0 起) void setKeys (QKeySequence::StandardKey key )
(从 6.0 起) void setKeys (const QList<QKeySequence> & keys )

QSortFilterProxyModel :

(从 6.0 起) void autoAcceptChildRowsChanged (bool autoAcceptChildRows )
(从 6.0 起) void invalidateColumnsFilter ()
(从 6.0 起) void invalidateRowsFilter ()

QSqlDriver :

(从 6.0 起) virtual int maximumIdentifierLength (QSqlDriver::IdentifierType type ) const

QSqlQuery :

(从 6.0 起) QVariantList boundValues () const

QSslConfiguration :

(从 6.0 起) bool handshakeMustInterruptOnError () const
(从 6.0 起) bool missingCertificateIsFatal () const
(从 6.0 起) void setCiphers (const QString & ciphers )
(从 6.0 起) void setHandshakeMustInterruptOnError (bool interrupt )
(从 6.0 起) void setMissingCertificateIsFatal (bool cannotRecover )

QSslSocket :

(从 6.0 起) void continueInterruptedHandshake ()

QStandardItem :

(从 6.0 起) virtual void multiData (QModelRoleDataSpan roleDataSpan ) const

QString :

(从 6.0 起) QString & append (QStringView v )
(从 6.0 起) qsizetype count (QStringView str , Qt::CaseSensitivity cs ) const
(从 6.0 起) QString first (qsizetype n ) const &
(从 6.0 起) QString first (qsizetype n ) &&
(从 6.0 起) QString fromLatin1 (QByteArrayView str )
(从 6.0 起) QString fromLocal8Bit (QByteArrayView str )
(从 6.0 起) QString fromUtf8 (QByteArrayView str )
(从 6.0 起) QString fromUtf8 (const char8_t * str , qsizetype size )
(从 6.0 起) QString & insert (qsizetype position , QStringView str )
(从 6.0 起) QString last (qsizetype n ) const &
(从 6.0 起) QString last (qsizetype n ) &&
(从 6.0 起) int localeAwareCompare (QStringView other ) const
(从 6.0 起) int localeAwareCompare (QStringView s1 , QStringView s2 )
(从 6.0 起) QString & operator+= (QStringView str )
(从 6.0 起) QString & prepend (QStringView str )
(从 6.0 起) QString sliced (qsizetype pos , qsizetype n ) const &
(从 6.0 起) QString sliced (qsizetype pos ) const &
(从 6.0 起) QString sliced (qsizetype pos ) &&
(从 6.0 起) QString sliced (qsizetype pos , qsizetype n ) &&
(从 6.0 起) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...)) tokenize (Needle && sep , Flags... flags ) const &
(从 6.0 起) decltype(qTokenize(std::move(*this), std::forward<Needle>(needle), flags...)) tokenize (Needle && sep , Flags... flags ) const &&
(从 6.0 起) decltype(qTokenize(std::move(*this), std::forward<Needle>(needle), flags...)) tokenize (Needle && sep , Flags... flags ) &&

QStringListModel :

(从 6.0 起) virtual bool clearItemData (const QModelIndex & index ) override

QStringTokenizer :

(从 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_pointer constData () const
(从 6.0 起) qsizetype count (QChar ch , Qt::CaseSensitivity cs ) const
(从 6.0 起) qsizetype count (QStringView str , Qt::CaseSensitivity cs ) const
(从 6.0 起) QStringView first (qsizetype n ) const
(从 6.0 起) QStringView last (qsizetype n ) const
(从 6.0 起) QStringView sliced (qsizetype pos , qsizetype n ) const
(从 6.0 起) QStringView sliced (qsizetype pos ) const
(从 6.0 起) QList<QStringView> split (QStringView sep , Qt::SplitBehavior behavior , Qt::CaseSensitivity cs ) const
(从 6.0 起) QList<QStringView> split (QChar sep , Qt::SplitBehavior behavior , Qt::CaseSensitivity cs ) const
(从 6.0 起) QList<QStringView> split (const QRegularExpression & re , Qt::SplitBehavior behavior ) const
(从 6.0 起) CFStringRef toCFString () const
(从 6.0 起) double toDouble (bool * ok ) const
(从 6.0 起) float toFloat (bool * ok ) const
(从 6.0 起) int toInt (bool * ok , int base ) const
(从 6.0 起) long toLong (bool * ok , int base ) const
(从 6.0 起) qlonglong toLongLong (bool * ok , int base ) const
(从 6.0 起) NSString * toNSString () const
(从 6.0 起) short toShort (bool * ok , int base ) const
(从 6.0 起) uint toUInt (bool * ok , int base ) const
(从 6.0 起) ulong toULong (bool * ok , int base ) const
(从 6.0 起) qulonglong toULongLong (bool * ok , int base ) const
(从 6.0 起) ushort toUShort (bool * ok , int base ) const
(从 6.0 起) decltype(qTokenize(*this, std::forward<Needle>(needle), flags...)) tokenize (Needle && sep , Flags... flags ) const

QSurfaceFormat :

(从 6.0 起) void setColorSpace (const QColorSpace & colorSpace )

QTextCharFormat :

(从 6.0 起) qreal baselineOffset () const
(从 6.0 起) void setBaselineOffset (qreal baseline )
(从 6.0 起) void setSubScriptBaseline (qreal baseline )
(从 6.0 起) void setSuperScriptBaseline (qreal baseline )
(从 6.0 起) qreal subScriptBaseline () const
(从 6.0 起) qreal superScriptBaseline () const

QTextDocument :

(从 6.0 起) qreal baselineOffset () const
(从 6.0 起) void setBaselineOffset (qreal baseline )
(从 6.0 起) void setSubScriptBaseline (qreal baseline )
(从 6.0 起) void setSuperScriptBaseline (qreal baseline )
(从 6.0 起) qreal subScriptBaseline () const
(从 6.0 起) qreal superScriptBaseline () const

QThreadPool :

(从 6.0 起) bool contains (const QThread * thread ) const

QTime :

(从 6.0 起) QTime fromString (QStringView string , Qt::DateFormat format )
(从 6.0 起) QTime fromString (QStringView string , QStringView format )
(从 6.0 起) QTime fromString (const QString & string , QStringView format )

QTypeRevision :

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

QUnhandledException :

(从 6.0 起) std::__exception_ptr::exception_ptr exception () const
(从 6.0 起) void swap (QUnhandledException & other )

QUuid :

(从 6.0 起) size_t qHash (char8_t key , size_t seed )
(从 6.0 起) size_t qHash (char16_t key , size_t seed )
(从 6.0 起) size_t qHash (char32_t key , size_t seed )
(从 6.0 起) size_t qHash (wchar_t key , size_t seed )
(从 6.0 起) size_t qHash (std::nullptr_t key , size_t seed )
(从 6.0 起) size_t qHash (QPoint key , size_t seed )
(从 6.0 起) size_t qHash (const QTypeRevision & key , size_t seed )

QVarLengthArray :

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

QVariant :

(从 6.0 起) bool canConvert (QMetaType type ) const
(从 6.0 起) QPartialOrdering compare (const QVariant & lhs , const QVariant & rhs )
(从 6.0 起) bool convert (QMetaType targetType )
(从 6.0 起) QMetaType metaType () const
(从 6.0 起) QDataStream & operator<< (QDataStream & out , const std::pair<T1, T2> & pair )
(从 6.0 起) QDataStream & operator>> (QDataStream & in , std::pair<T1, T2> & pair )

QWidget :

(从 6.0 起) QPointF mapFrom (const QWidget * parent , const QPointF & pos ) const
(从 6.0 起) QPointF mapFromGlobal (const QPointF & pos ) const
(从 6.0 起) QPointF mapFromParent (const QPointF & pos ) const
(从 6.0 起) QPointF mapTo (const QWidget * parent , const QPointF & pos ) const
(从 6.0 起) QPointF mapToGlobal (const QPointF & pos ) const
(从 6.0 起) QPointF mapToParent (const QPointF & pos ) const

QWindow :

(从 6.0 起) QPointF mapFromGlobal (const QPointF & pos ) const
(从 6.0 起) QPointF mapToGlobal (const QPointF & pos ) const
(从 6.0 起) virtual void paintEvent (QPaintEvent * ev )

名称空间中的新函数

(从 6.0 起) void resetOpenGLState ()
(从 6.0 起) QtConcurrent::QTaskBuilder<Task> task (Task && task )

新全局函数

(从 6.0 起) long double qDegreesToRadians (long double degrees )
(从 6.0 起) long double qRadiansToDegrees (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 起) enum IntermediateError { ResponseCrcError, ResponseRequestMismatch }
(从 6.0 起) enum WildcardConversionOption { DefaultWildcardConversion, UnanchoredWildcardConversion, NonPathWildcardConversion }
(从 6.0 起) enum class AlertLevel { Warning, Fatal, Unknown }
(从 6.0 起) enum class AlertType { CloseNotify, UnexpectedMessage, BadRecordMac, RecordOverflow, DecompressionFailure, …, UnknownAlertMessage }
(从 6.0 起) enum class Launch { Sync, Async, Inherit }

New Enum Values

enum value Country::BosniaAndHerzegovina
enum value Country::Curacao
enum value Country::Czechia
enum value Language::Bangla
enum value Language::CentralAtlasTamazight
enum value Language::Inupiaq
enum value Language::Kalaallisut
enum value Language::Kuanyama
enum value Language::Kyrgyz
enum value Language::Navajo
enum value Language::NigerianPidgin
enum value Language::Odia
enum value Language::Uyghur
enum value Language::Wolaytta
enum value Resource::RhiRedirectCommandBuffer
enum value Resource::RhiRedirectRenderTarget
enum value Resource::RhiSwapchainResource
enum value Script::BanglaScript
enum value Script::MendeScript
enum value Script::OdiaScript

新类型别名

(从 6.0 起) iterator
(从 6.0 起) QPair
(从 6.0 起) iterator

新特性

新的变量

(从 6.0 起) MacOSBigSur

新 QML 类型

C
CoreSettings
G
GeometryView
Q
QtTextInputMethodManager

新 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 : list<enum>

QML 类型 Window :

(从 6.0 起) palette : Palette